/* ═══════════════════════════════════════════════════════════
   SETTINGS DASHBOARD - INTEGRATED WITH SIDEBAR-BUSINESS
   ═══════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  /* box-sizing: border-box; */
}

:root {
  /* Neon Theme Colors */
  --neon-purple: #a445ed;
  --neon-purple-dark: #6b2fb5;
  --neon-cyan: #00ffff;
  --neon-pink: #ff00ff;
  --neon-blue: #00bfff;
  --muted: #8a8880;
  --line: #e8e4dc;
  --confirm: #2e7d5a;
  --slot-bg: #ffffff;

  /* Background Colors */
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #1a1a2e;
  --bg-sidebar: #14052e;
  --bg-main: #f5f5f5;

  /* Text Colors */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --text-muted: #999999;

  /* Accent Colors */
  --accent-green: #4ade80;
  --accent-yellow: #fbbf24;
  --accent-red: #ef4444;

  /* Shadows & Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-neon: 0 0 20px rgba(164, 69, 237, 0.5);

  /* Transitions */
  --transition: all 0.3s ease;
}

.hide {
  display: none !important;
}

/* ═══════════ SIDEBAR HEADER ═══════════ */

.settings-header {
  padding: 0px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.business-name-dropdown {
  margin-bottom: 15px;
}

.business-name-btn {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(
    135deg,
    rgba(107, 47, 181, 0.4),
    rgba(164, 69, 237, 0.4)
  );
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(164, 69, 237, 0.2);
}

.business-name-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(107, 47, 181, 0.6),
    rgba(164, 69, 237, 0.6)
  );
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(164, 69, 237, 0.4);
  transform: translateY(-2px);
}

.business-name-btn svg {
  width: 16px;
  height: 16px;
  color: var(--neon-cyan);
}

.back-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--neon-cyan);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.back-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.4);
  transform: translateX(-3px);
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

/* ═══════════ CONTENT SECTIONS ═══════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header-main {
  margin-bottom: 30px;
}

.section-header-main h2 {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-header-main p {
  font-size: 16px;
  color: #ffffff;
}

/* ═══════════ WELCOME CARDS ═══════════ */

.welcome-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 30px;
  color: var(--text-light);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.welcome-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.welcome-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
}

.welcome-card p {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

/* ═══════════ INFO CARDS ═══════════ */

.info-card {
  background: var(--text-light);
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.info-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ═══════════ STATS GRID ═══════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-box-dash {
  background: var(--text-light);
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-box-dash:hover {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--neon-purple);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════ CONTENT CARDS ═══════════ */

.content-card-main {
  background: var(--text-light);
  border: 2px solid #e5e5e5;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}

.content-card-main h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.content-card-main p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ═══════════ STEPS LIST ═══════════ */

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: var(--transition);
}

.step-item:hover {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--neon-purple),
    var(--neon-purple-dark)
  );
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

/* ═══════════ AGENTS GRID ═══════════ */

.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.agent-card {
  background: #f9fafb;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.agent-card:hover {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.agent-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.agent-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.agent-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}
.agent-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}
.agent-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.section-divider {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #f0f0f0;
}
/* ═══════════ TOGGLE SWITCH ═══════════ */

.toggle-switch-settings {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle-switch-settings input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider-settings {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 34px;
}

.toggle-slider-settings:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch-settings input:checked + .toggle-slider-settings {
  background: linear-gradient(
    135deg,
    var(--neon-purple),
    var(--neon-purple-dark)
  );
}

.toggle-switch-settings input:checked + .toggle-slider-settings:before {
  transform: translateX(24px);
}

/* ═══════════ BUTTONS ═══════════ */

.btn-primary-settings {
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    var(--neon-purple),
    var(--neon-purple-dark)
  );
  color: var(--text-light);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(164, 69, 237, 0.3);
}

.btn-primary-settings:hover {
  background: linear-gradient(
    135deg,
    var(--neon-purple-dark),
    var(--neon-purple)
  );
  box-shadow: 0 6px 20px rgba(164, 69, 237, 0.5);
  transform: translateY(-2px);
}

.btn-primary-settings:active {
  transform: translateY(0);
}

.btn-edit {
  padding: 6px 16px;
  background: transparent;
  color: var(--neon-purple);
  border: 2px solid var(--neon-purple);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edit:hover {
  background: var(--neon-purple);
  color: var(--text-light);
}

.btn-copy {
  padding: 8px 16px;
  background: var(--neon-purple);
  color: var(--text-light);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--neon-purple-dark);
}

/* ═══════════ PROMPTS LIST ═══════════ */

.prompts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.prompt-item {
  background: #f9fafb;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition);
}

.prompt-item:hover {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-md);
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.prompt-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.prompt-preview {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-status {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(74, 222, 128, 0.1);
  color: var(--accent-green);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ═══════════ SETTINGS FORM ═══════════ */

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.form-group-settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-settings label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group-settings input,
.form-group-settings select,
.form-group-settings textarea {
  padding: 12px 16px;
  background: #f9fafb;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group-settings input:focus,
.form-group-settings select:focus,
.form-group-settings textarea:focus {
  outline: none;
  border-color: var(--neon-purple);
  background: var(--text-light);
  box-shadow: 0 0 0 3px rgba(164, 69, 237, 0.1);
}

.input-with-copy {
  display: flex;
  gap: 10px;
}

.input-with-copy input {
  flex: 1;
}

/* ═══════════ FEATURES SETTINGS LIST ═══════════ */

.features-settings-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.feature-settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f9fafb;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  transition: var(--transition);
}

.feature-settings-item:hover {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-md);
}

.feature-info {
  flex: 1;
}

.feature-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ═══════════ NOTIFICATION SETTINGS ═══════════ */

.notification-settings-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.notification-setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f9fafb;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  transition: var(--transition);
}

.notification-setting-item:hover {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-md);
}

.notification-info {
  flex: 1;
}

.notification-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notification-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.timeout-select {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--text-light);
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  font-size: 13px;
}

/* ═══════════ RESPONSIVE DESIGN ═══════════ */

@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agents-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .sidebar-business {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar-business.active {
    transform: translateX(0);
  }

  .settings-sidebar {
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .settings-sidebar.active {
    transform: translateX(0);
  }

  .main-area {
    margin-left: 0;
  }

  .settings-main-content {
    margin-left: 0;
  }

  .settings-content-section {
    padding: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .settings-top-bar {
    padding: 15px 20px;
  }

  .main-area-title {
    font-size: 20px;
  }

  .section-header-main h2 {
    font-size: 24px;
  }

  .welcome-card {
    padding: 30px 20px;
  }

  .step-item {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .sidebar-business {
    width: 100%;
    min-width: 100%;
  }

  .settings-sidebar {
    width: 100%;
    min-width: 100%;
  }

  .settings-content-section {
    padding: 15px;
  }
}

/* ═══════════ LOADING ANIMATION ═══════════ */

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #e5e5e5;
  border-top-color: var(--neon-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══════════ UTILITIES ═══════════ */

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}
/* ═══════════════════════════════════════════════════════════
   COMPANY PROFILE FORM STYLES
   ═══════════════════════════════════════════════════════════ */

.company-profile-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Form Sections */
.form-section {
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 30px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e5e5e5;
}

.section-title svg {
  width: 24px;
  height: 24px;
  color: var(--neon-purple);
  flex-shrink: 0;
}

.section-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
}
/* Upload row label */
.tax-doc-main-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
}

/* Two-column grid for front/back */
.tax-doc-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Each box */
.tax-doc-upload-box {
  border: 2px dashed rgba(124, 58, 237, 0.35);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 130px;
  background: rgba(124, 58, 237, 0.02);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.tax-doc-upload-box:hover {
  border-color: rgba(124, 58, 237, 0.6);
  background: rgba(124, 58, 237, 0.04);
}

/* Placeholder content */
.tax-doc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 8px;
  min-height: 130px;
}
.tax-doc-icon {
  font-size: 28px;
  line-height: 1;
}
.tax-doc-side-label {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.03em;
}
.btn-tax-upload {
  padding: 8px 28px;
  border-radius: 8px;
  border: none;
  background: #7c3aed;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
  font-family: inherit;
  letter-spacing: 0.03em;
}
.btn-tax-upload:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

/* Preview state */
.tax-doc-preview {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  gap: 8px;
  min-height: 130px;
  text-align: center;
}
.tax-doc-preview.active {
  display: flex;
}
.tax-doc-placeholder.hidden {
  display: none;
}

.tax-doc-preview img {
  max-width: 100%;
  max-height: 80px;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.tax-doc-file-icon {
  font-size: 36px;
}
.tax-doc-preview-label {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tax-doc-preview-actions {
  display: flex;
  gap: 8px;
}
.btn-tax-change {
  padding: 5px 14px;
  border-radius: 7px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: transparent;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-tax-change:hover {
  background: rgba(124, 58, 237, 0.08);
}
.btn-tax-remove {
  padding: 5px 14px;
  border-radius: 7px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: transparent;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-tax-remove:hover {
  background: rgba(239, 68, 68, 0.06);
}

/* Progress */
.tax-doc-progress {
  margin-top: 8px;
}
.tax-doc-progress-bar {
  height: 4px;
  background: #ede9fe;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 4px;
}
.tax-doc-progress-fill {
  height: 100%;
  background: #7c3aed;
  border-radius: 20px;
  width: 0%;
  transition: width 0.3s;
}
.tax-doc-progress-text {
  font-size: 11px;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 640px) {
  .tax-doc-upload-grid {
    grid-template-columns: 1fr;
  }
}
/* Form Grid for Company */
.form-grid-company {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-group-company {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-company.full-width {
  grid-column: 1 / -1;
}

.form-group-company label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.field-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #e5e5e5;
  border-radius: 50%;
  font-size: 11px;
  color: #666;
  cursor: help;
  transition: var(--transition);
}

.field-info:hover {
  background: var(--neon-purple);
  color: white;
}

.form-group-company input[type="text"],
.form-group-company input[type="email"],
.form-group-company input[type="tel"],
.form-group-company input[type="url"],
.form-group-company select {
  padding: 12px 16px;
  background: #f9fafb;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group-company input:focus,
.form-group-company select:focus {
  outline: none;
  border-color: var(--neon-purple);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(164, 69, 237, 0.1);
}

.form-group-company input::placeholder {
  color: #999;
}

/* Domain Input Group */
.domain-input-group {
  display: flex;
  gap: 10px;
}

.domain-input-group input {
  flex: 1;
}

.btn-add-domain {
  padding: 12px 20px;
  background: var(--neon-purple);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-add-domain:hover {
  background: var(--neon-purple-dark);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   LOGO UPLOAD SECTION - FIXED VERSION
   ═══════════════════════════════════════════════════════════ */

.logo-upload-section {
  margin-top: 15px;
}

.upload-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.logo-upload-box {
  position: relative;
  width: 350px;
  height: 160px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition);
}

.logo-upload-box:hover {
  border-color: var(--neon-purple);
  background: #ffffff;
}

/* Upload Placeholder */
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 1;
}

.upload-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--neon-purple),
    var(--neon-purple-dark)
  );
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
}

.upload-actions {
  display: flex;
  gap: 10px;
}

.btn-upload,
.btn-remove {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-upload {
  background: var(--neon-purple);
  color: white;
}

.btn-upload:hover {
  background: var(--neon-purple-dark);
  transform: translateY(-2px);
}

.btn-remove {
  background: #e5e5e5;
  color: #666;
}

.btn-remove:hover:not(:disabled) {
  background: #ef4444;
  color: white;
}

.btn-remove:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Logo Preview */
.logo-preview {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 2;
}

.logo-preview.active {
  display: flex;
}

.logo-preview img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: var(--transition);
}

/* Logo Overlay (appears on hover) */
.logo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-preview:hover .logo-overlay {
  opacity: 1;
}

.logo-preview:hover img {
  filter: blur(2px);
}

.btn-change-logo,
.btn-delete-logo {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-change-logo {
  background: var(--neon-purple);
  color: white;
}

.btn-change-logo:hover {
  background: var(--neon-purple-dark);
  transform: translateY(-2px);
}

.btn-delete-logo {
  background: #ef4444;
  color: white;
}

.btn-delete-logo:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-change-logo svg,
.btn-delete-logo svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-upload-box {
    width: 100%;
  }
}
/* Inline Form Actions */
.form-actions-inline {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.btn-update-info {
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    var(--neon-purple),
    var(--neon-purple-dark)
  );
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(164, 69, 237, 0.3);
}

.btn-update-info:hover {
  box-shadow: 0 6px 20px rgba(164, 69, 237, 0.5);
  transform: translateY(-2px);
}
/* Main Form Actions */
.form-actions-main {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.btn-large {
  padding: 16px 40px !important;
  font-size: 16px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-large svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid-company {
    grid-template-columns: 1fr;
  }

  .logo-upload-box {
    width: 100%;
  }

  .domain-input-group {
    flex-direction: column;
  }
}
/* social media */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.social-item {
  display: flex;
  flex-direction: column;
}

.social-item label {
  color: #cbd5f5;
  margin-bottom: 6px;
  font-size: 14px;
}

.social-item input {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
  color: #fff;
}

.social-item input:focus {
  border-color: #7c3aed;
  outline: none;
}

.btn-save-social {
  margin-top: 20px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.btn-save-social:hover {
  opacity: 0.9;
}
/* bio link */
.bio-builder-card {
  padding: 25px;
}

.bio-header h3 {
  color: #fff;
  margin-bottom: 5px;
}

.bio-header p {
  color: #9ca3af;
  margin-bottom: 20px;
}

.bio-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  background: #0f172a;
  padding: 10px;
  border-radius: 10px;
  align-items: center;
}

.bio-item input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
  color: #fff;
}

.bio-item input:focus {
  border-color: #7c3aed;
  outline: none;
}

.bio-item button {
  background: #ef4444;
  border: none;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-add-link {
  margin-top: 10px;
  background: transparent;
  border: 1px dashed #7c3aed;
  color: #7c3aed;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}

.btn-add-link:hover {
  background: rgba(124, 58, 237, 0.1);
}
/* feature and notifications */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 2px;
  color: #cbd5f5;
}

/* SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #374151;
  border-radius: 34px;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

/* Hide bottom part */
.google-form-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px; /* adjust to cover footer */
  background: #1a0f2e; /* match your theme background */
}

.google-form-wrapper {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #2a0d4d, #1a0f2e);
  padding: 10px;
  width: 100%;
  height: 900px; /* adjust based on your form */
  overflow: hidden; /* 🔥 removes scrollbar */
  position: relative;
}

.google-form-wrapper iframe {
  width: 100%;
  height: 1200px; /* bigger than container */
  border: none;
}
/* ── Wrapper ── */
.dash-stats-wrap {
  padding: 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Header ── */
.dash-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dash-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dash-date-badge {
  font-size: 12px;
  color: #888;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 20px;
  padding: 4px 14px;
}

/* ── Section tags ── */
.dash-section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 2px;
}
.tag-online {
  color: #06b6d4;
}
.tag-phone {
  color: #a78bfa;
}
.tag-ops {
  color: #34d399;
}

/* ── Card grid ── */
.dash-cards-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

/* ── Base card ── */
.sc {
  border-radius: 14px;
  padding: 18px 14px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.sc:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.sc-light {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.sc-dark {
  background: #0f0a1e;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Wide card (sales) */
.sc-wide {
  grid-column: span 2;
}
.sc-wide-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.sc-wide-right {
  text-align: right;
}

/* ── Icon ── */
.sc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.ico-cyan {
  background: rgba(6, 182, 212, 0.12);
}
.ico-purple {
  background: rgba(124, 58, 237, 0.12);
}
.ico-green {
  background: rgba(52, 211, 153, 0.12);
}
.ico-amber {
  background: rgba(245, 158, 11, 0.12);
}
.ico-pink {
  background: rgba(236, 72, 153, 0.12);
}

/* ── Value ── */
.sc-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
}
.sc-value-xl {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
}
.v-cyan {
  color: #06b6d4;
}
.v-purple {
  color: #8b5cf6;
}
.v-green {
  color: #10b981;
}
.v-amber {
  color: #f59e0b;
}
.v-pink {
  color: #ec4899;
}

/* ── Label ── */
.sc-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.sc-label-dark {
  color: #6b7280;
}

/* ── Trend ── */
.sc-trend {
  font-size: 11px;
  font-weight: 600;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sc-trend.up {
  color: #10b981;
}
.sc-trend.down {
  color: #ef4444;
}

/* ── Colour bar ── */
.sc-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 14px 14px;
}
.bar-cyan {
  background: #06b6d4;
}
.bar-purple {
  background: #8b5cf6;
}
.bar-green {
  background: #10b981;
}
.bar-amber {
  background: #f59e0b;
}
.bar-pink {
  background: #ec4899;
}

/* ── Chart card ── */
.dash-chart-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 20px 24px;
  margin-top: 4px;
}
.dash-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-chart-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}
.dash-chart-legend {
  display: flex;
  gap: 16px;
}
.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
}
.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 200px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .dash-cards-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sc-wide {
    grid-column: span 3;
  }
}
@media (max-width: 580px) {
  .dash-cards-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc-wide {
    grid-column: span 2;
  }
}
/* Top row */
.dash-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.dash-heading-tag {
  font-size: 12px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dash-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  padding: 5px 12px;
}
.dash-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}
.dash-live-text {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Filter card */
.dash-filter-wrap {
  background: #0f0a25;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 10px;
}
.dash-filter-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dash-filter-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-filter-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6b7280;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 2px;
}

/* Period buttons */
.dash-period-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.dpb {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.06);
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  letter-spacing: 0.02em;
  font-family: inherit;
}
.dpb:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.5);
  color: #e9d5ff;
}
.dpb.active {
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

/* Date inputs */
.dash-range-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.dash-di {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #c4b5fd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  width: 150px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}
.dash-di:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}
.dash-di::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(4) hue-rotate(220deg);
  cursor: pointer;
}
.dash-range-arrow {
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}
.dash-apply-btn {
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.dash-apply-btn:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}
.dash-apply-btn:active {
  transform: translateY(0);
}

/* Showing row */
.dash-showing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-left: 2px;
}
.dash-showing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7c3aed;
  flex-shrink: 0;
}
.dash-showing-text {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}
.dash-showing-text strong {
  color: #a78bfa;
  font-weight: 700;
}

/* Shimmer animation when values update */
.stat-updating {
  animation: stat-shimmer 0.5s ease-in-out;
}
@keyframes stat-shimmer {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .dash-filter-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-di {
    width: 140px;
  }
}
@media (max-width: 600px) {
  .dash-filter-wrap {
    padding: 14px;
  }
  .dpb {
    padding: 7px 13px;
    font-size: 11px;
  }
  .dash-di {
    width: 120px;
  }
}
