:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --border: #334155;
  --glass: rgba(30, 41, 59, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand span {
  color: var(--accent);
}

.nav-item {
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 40%);
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Lead List */
.lead-table {
  width: 100%;
  border-collapse: collapse;
}

.lead-table th,
.lead-table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.lead-table th {
  color: var(--text-secondary);
  font-weight: 500;
}

.lead-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-New {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.status-Qualified {
  background-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.status-Disqualified {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Chat Detail */
.chat-history {
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--bg-dark);
  border-radius: 12px;
  margin-top: 20px;
}

.message {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.5;
}

.message.user {
  align-self: flex-end;
  background-color: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.assistant {
  align-self: flex-start;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

/* Widget Preview */
.widget-preview {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-section {
  animation: fadeIn 0.3s ease-out;
}

/* ========================================
   SIGNUP PAGE STYLES
   ======================================== */

.signup-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
  animation: fadeIn 0.6s ease-out;
}

/* Hero Section */
.signup-hero {
  text-align: center;
  margin-bottom: 60px;
}

.signup-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.signup-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.signup-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  padding: 24px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Two Column Layout */
.signup-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

/* Form Column */
.signup-form-column {
  position: relative;
}

.signup-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 20px;
}

.card-header {
  margin-bottom: 30px;
}

.card-header h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.badge-icon {
  color: #22c55e;
  font-weight: 600;
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-dark);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Payment Section */
.payment-section {
  margin: 30px 0;
  padding: 24px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
}

.payment-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 600;
}

.payment-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.card-element {
  padding: 14px 16px;
  background: var(--bg-dark);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.card-element:focus-within {
  border-color: var(--accent);
}

.card-errors {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 20px;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.security-note svg {
  color: #22c55e;
}

/* Terms Checkbox */
.terms-checkbox {
  margin-bottom: 24px;
}

.terms-checkbox label {
  display: flex;
  align-items: start;
  gap: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.terms-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
}

.terms-checkbox a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.terms-checkbox a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* CTA Button */
.cta-button {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.button-text {
  font-size: 1.1rem;
}

.button-subtext {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.9;
}

.login-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.login-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.login-link a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Benefits Column */
.signup-benefits-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefits-card,
.testimonials-card,
.guarantee-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.benefits-title,
.testimonials-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: start;
}

.benefit-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
}

.benefit-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.benefit-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Testimonials */
.testimonial {
  padding: 24px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 16px;
  margin-bottom: 16px;
}

.testimonial:last-child {
  margin-bottom: 0;
}

.testimonial-stars {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fbbf24;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.author-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Guarantee Card */
.guarantee-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.guarantee-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.guarantee-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.guarantee-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  border-top: 1px solid var(--border);
}

.faq-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.faq-item {
  padding: 24px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.faq-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .signup-content {
    grid-template-columns: 1fr;
  }

  .signup-card {
    position: static;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .signup-title {
    font-size: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  .signup-container {
    padding: 40px 16px;
  }

  .signup-title {
    font-size: 2rem;
  }

  .signup-subtitle {
    font-size: 1rem;
  }

  .signup-card {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    flex-direction: column;
  }
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 20px;
  animation: fadeIn 0.6s ease-out;
}

/* Login Hero Section */
.login-hero {
  text-align: center;
  margin-bottom: 40px;
}

.login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: slideDown 0.6s ease-out;
}

.login-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Login Card */
.login-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.login-card .card-header {
  margin-bottom: 30px;
  text-align: center;
}

.login-card .card-header h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Login Button */
.login-button {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  margin-bottom: 24px;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.login-button:active {
  transform: translateY(0);
}

/* Login Links */
.login-links {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.signup-link,
.forgot-link {
  margin: 12px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.signup-link a,
.forgot-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.signup-link a:hover,
.forgot-link a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Login Trust Badges */
.login-trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Login Stats */
.login-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.login-stat-item {
  text-align: center;
  padding: 20px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.login-stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.login-stat-item .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.login-stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Responsive Login */
@media (max-width: 640px) {
  .login-container {
    padding: 40px 16px;
  }

  .login-title {
    font-size: 2rem;
  }

  .login-subtitle {
    font-size: 1rem;
  }

  .login-card {
    padding: 24px;
  }

  .login-stats {
    grid-template-columns: 1fr;
  }

  .login-trust-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================
   TOASTIFY CUSTOM STYLES
   ======================================== */

/* Override Toastify defaults for better integration */
.toastify {
  font-family: 'Inter', sans-serif !important;
  z-index: 99999 !important;
}

.toastify-right {
  right: 20px !important;
}

.toastify-top {
  top: 20px !important;
}

/* Add subtle animation */
@keyframes toastSlideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toastify {
  animation: toastSlideIn 0.3s ease-out;
}

/* Responsive toast positioning */
@media (max-width: 640px) {
  .toastify {
    margin: 10px !important;
    max-width: calc(100vw - 40px) !important;
  }

  .toastify-right {
    right: 10px !important;
  }

  .toastify-top {
    top: 10px !important;
  }
}