/* CashControl Web Portal - Modern, Responsive CSS */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* Container and layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Login Page Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #667eea;
  font-weight: 700;
}

.login-card p {
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Form styles */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
}

.btn-danger {
  background: #ff4757;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: #ff3742;
}

/* Dashboard Styles */
.dashboard {
  min-height: 100vh;
  background: #f8f9fa;
}

.dashboard header {
  background: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.dashboard header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard h1 {
  font-size: 2rem;
  color: #667eea;
  font-weight: 700;
}

.dashboard nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dashboard nav span {
  font-weight: 500;
  color: #333;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 25px;
  padding: 20px 0;
}

.full-width {
  grid-column: 1 / -1;
}

/* Card styles */
.card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card p {
  color: #666;
  margin-bottom: 15px;
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-buttons button {
  flex: 1;
  min-width: 120px;
}

/* Status indicators */
.status-linked {
  color: #2ed573;
  font-weight: 600;
}

.status-unlinked {
  color: #ff4757;
  font-weight: 600;
}

.status-pending {
  color: #ffa502;
  font-weight: 600;
}

/* Admin Panel Styles */
.admin-panel {
  min-height: 100vh;
  background: #f8f9fa;
}

.admin-panel header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 0;
  margin-bottom: 30px;
}

.admin-panel header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-panel h1 {
  font-size: 2rem;
  font-weight: 700;
}

/* User management table */
.users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.users-table th,
.users-table td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.users-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.users-table tr:hover {
  background: #f8f9fa;
}

/* Message styles */
.message {
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: 500;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #b6d4db;
}

/* Loading and utility styles */
.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.hidden {
  display: none !important;
}

/* Ensure modal overlays can be properly hidden */
.modal-overlay.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

/* Code display */
code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #e83e8c;
  border: 1px solid #eee;
}

.code-block {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
  margin: 15px 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  overflow-x: auto;
}

/* Statistics display */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #eee;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #667eea;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
  .dashboard-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard header .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .dashboard nav {
    justify-content: center;
  }
  
  .login-card {
    padding: 30px 20px;
  }
  
  .users-table {
    font-size: 14px;
  }
  
  .users-table th,
  .users-table td {
    padding: 8px 10px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 20px 15px;
  }
  
  .login-card h1 {
    font-size: 2rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Form validation styles */
.form-group input.invalid,
.form-group select.invalid {
  border-color: #ff4757;
  background-color: #fff5f5;
}

.form-group .error-message {
  color: #ff4757;
  font-size: 0.9rem;
  margin-top: 5px;
  display: block;
}

/* Tooltip styles */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 1000;
}

/* Modal styles (for future use) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal h2 {
  margin-bottom: 20px;
  color: #333;
}

/* Signup Page Specific Styles */
.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.form-help {
  color: #666;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
}

.password-requirements {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.password-requirements h4 {
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.password-requirements ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.password-requirements li {
  padding: 5px 0;
  font-size: 0.8rem;
  color: #666;
  position: relative;
  padding-left: 25px;
}

.password-requirements li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #ccc;
  font-weight: bold;
}

.password-requirements li.valid::before {
  content: "✓";
  color: #28a745;
}

.password-requirements li.invalid::before {
  content: "✗";
  color: #dc3545;
}

.password-requirements li.valid {
  color: #28a745;
}

.password-requirements li.invalid {
  color: #dc3545;
}

/* Input validation states */
.form-group input.valid {
  border-color: #28a745;
  background-color: #f8fff8;
}

.form-group input.invalid {
  border-color: #dc3545;
  background-color: #fff8f8;
}

/* Social signup styles */
.social-signup {
  margin: 30px 0;
}

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #666;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.social-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

.btn-social:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
  border-color: #4285F4;
}

.btn-apple:hover {
  border-color: #000;
  color: #000;
}

.btn-github:hover {
  border-color: #333;
  color: #333;
}

/* Checkbox styles */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #666;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-mark {
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark {
  background: #667eea;
  border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label a {
  color: #667eea;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* reCAPTCHA container */
.recaptcha-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.recaptcha-container .g-recaptcha {
  transform: scale(0.95);
  transform-origin: center;
}

/* Link styles */
.link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

/* Responsive design for signup */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .social-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-social {
    min-width: auto;
  }
  
  .recaptcha-container .g-recaptcha {
    transform: scale(0.85);
  }
  
  .login-card {
    padding: 30px 20px;
    max-width: 500px;
  }
}

/* Landing Page Styles - Professional SaaS Design */
:root {
  /* Professional SaaS Color Palette */
  --primary-600: #2563eb;    /* Primary blue */
  --primary-700: #1d4ed8;    /* Darker blue */
  --primary-50: #eff6ff;     /* Light blue background */
  --primary-100: #dbeafe;    /* Lighter blue */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success-500: #10b981;
  --success-50: #ecfdf5;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.landing-page {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  background: var(--white);
  color: var(--gray-900);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-brand .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-600);
}

.nav-login {
  color: var(--gray-500) !important;
}

.nav-signup {
  background: var(--primary-600);
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-signup:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-mobile {
  display: none;
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-700);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: var(--gray-50);
  color: var(--gray-900);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%232563eb" fill-opacity="0.02"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
  opacity: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.gradient-text {
  color: var(--primary-600);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: var(--gray-600);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
}

.btn-primary {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
}

.btn-primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.hero-btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.btn-arrow {
  font-size: 1rem;
  margin-left: 0.25rem;
}

.hero-social-proof {
  margin-top: 2rem;
}

.proof-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat span {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-dashboard {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
}

.dashboard-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.card-status {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  background: var(--success-50);
  color: var(--success-500);
}

.card-status.online::before {
  content: '●';
  color: var(--success-500);
  margin-right: 0.25rem;
}

.transaction {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.transaction:last-child {
  border-bottom: none;
}

.tx-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: 8px;
}

.tx-details {
  flex: 1;
}

.tx-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.tx-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.tx-amount {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Section Styles */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-600);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
  background: var(--gray-50);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}

.step h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.step p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.testimonial-content {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-name {
  font-weight: 600;
  color: var(--gray-900);
}

.author-title {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Pricing */
.pricing-preview {
  padding: 80px 0;
  background: var(--gray-50);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary-600);
  border-width: 2px;
  transform: scale(1.02);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-600);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.price-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.price span {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 400;
}

.price-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.price-features li {
  padding: 0.5rem 0;
  color: var(--gray-700);
  text-align: left;
}

.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border-color: var(--primary-600);
}

.btn-outline:hover {
  background: var(--primary-600);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Final CTA */
.final-cta {
  padding: 80px 0;
  background: var(--primary-600);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-large {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* CTA Section Button Override */
.final-cta .btn-primary {
  background: white;
  color: var(--primary-600);
  border-color: white;
}

.final-cta .btn-primary:hover {
  background: var(--gray-50);
  color: var(--primary-700);
  border-color: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.link-group h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.link-group a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.link-group a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-500);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  transition: left 0.3s ease;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-content {
  padding: 80px 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-content a {
  font-size: 1.2rem;
  color: var(--gray-700);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-signup {
  background: var(--primary-600) !important;
  color: white !important;
  padding: 1rem 2rem !important;
  border-radius: 6px;
  text-align: center;
  border: none !important;
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-mobile {
    display: block;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .proof-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .footer-meta {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .nav-container {
    padding: 1rem;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .section-container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-btn {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .btn-large {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
}

/* Terms Agreement Styles */
.oauth-success-info {
  background: #d4edda;
  color: #155724;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  text-align: center;
}

.oauth-provider-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.terms-container {
  text-align: left;
}

.terms-content h3 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.terms-scroll {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  background: #f8f9fa;
  margin-bottom: 25px;
  line-height: 1.5;
}

.terms-scroll h4 {
  color: #495057;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.terms-scroll h4:first-child {
  margin-top: 0;
}

.terms-scroll p {
  margin-bottom: 15px;
  color: #666;
}

.terms-agreement {
  margin-bottom: 30px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 15px;
  line-height: 1.4;
  font-size: 0.95rem;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 2px;
  transform: scale(1.2);
}

.gdpr-notice {
  background: #e3f2fd;
  color: #1565c0;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.gdpr-notice p {
  margin: 0;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.action-buttons button {
  flex: 1;
}

/* Responsive terms page */
@media (max-width: 768px) {
  .terms-scroll {
    max-height: 250px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .checkbox-container {
    font-size: 0.9rem;
  }
}