/* ============================================
   MaizeGuide - Global Styles
   Modern Agricultural Decision Support System
   ============================================ */

/* CSS Variables */
:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #22c55e;
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --secondary-light: #fbbf24;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --danger: #ef4444;
  --danger-light: #fca5a5;
  --warning: #f59e0b;
  --warning-light: #fde68a;
  --success: #22c55e;
  --success-light: #bbf7d0;
  --dark: #1e293b;
  --dark-700: #334155;
  --dark-600: #475569;
  --dark-500: #64748b;
  --gray: #94a3b8;
  --gray-light: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --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);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  zoom: 0.9;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: 3.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

p {
  color: var(--dark-600);
  line-height: 1.7;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 4rem 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.938rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

.btn-secondary:hover {
  background: var(--primary-50);
}

.btn-accent {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-accent:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

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

.btn-dark:hover {
  background: var(--dark-700);
  border-color: var(--dark-700);
}

.btn-ghost {
  background: transparent;
  color: var(--dark-600);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
}

.btn-full {
  width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.navbar-brand i {
  font-size: 1.5rem;
}

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

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-link {
  padding: 0.5rem 1rem;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--dark-600);
  border-radius: var(--radius);
  transition: var(--transition);
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--primary);
  background: var(--primary-50);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-mobile-auth {
  display: none;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.navbar-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .navbar-toggle {
    display: flex;
    z-index: 1011;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 5.5rem 1.5rem 2rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1010;
  }

  .navbar-menu.open {
    transform: translateX(0);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  }

  .navbar-menu .navbar-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
    order: -1;
  }

  .navbar-menu .navbar-mobile-auth .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .navbar-link {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
  }

  .navbar-link:hover,
  .navbar-link.active {
    background: var(--primary-50);
  }

  .navbar-actions {
    display: none;
  }
}

@media (max-width: 640px) {
  .navbar-inner {
    padding: 0 1rem;
    height: 4rem;
  }

  .navbar-menu {
    padding: 4.75rem 1.25rem 2rem;
  }

  .navbar-menu .navbar-mobile-auth {
    padding-bottom: 1.25rem;
    margin-bottom: 0.75rem;
  }
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-light);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-icon.green {
  background: var(--primary-100);
  color: var(--primary);
}

.card-icon.amber {
  background: #fef3c7;
  color: var(--secondary);
}

.card-icon.blue {
  background: #e0f2fe;
  color: var(--accent);
}

.card-icon.red {
  background: #fee2e2;
  color: var(--danger);
}

.card h3, .card h4 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.938rem;
}

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.badge-green {
  background: var(--primary-100);
  color: var(--primary-dark);
}

.badge-amber {
  background: #fef3c7;
  color: #b45309;
}

.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-red {
  background: #fee2e2;
  color: #dc2626;
}

.badge-gray {
  background: var(--gray-100);
  color: var(--dark-600);
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-700);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.938rem;
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.form-input::placeholder {
  color: var(--gray);
}

.form-input-icon {
  position: relative;
}

.form-input-icon .form-input {
  padding-left: 2.75rem;
}

.form-input-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 1rem;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.938rem;
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary);
  margin-top: 0.125rem;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--dark-600);
  cursor: pointer;
}

.form-helper {
  margin-top: 0.375rem;
  font-size: 0.8rem;
  color: var(--gray);
}

.form-error {
  margin-top: 0.375rem;
  font-size: 0.8rem;
  color: var(--danger);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--gray);
  font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-light);
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: var(--gray-100);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

.progress-bar-fill.green { background: var(--primary); }
.progress-bar-fill.amber { background: var(--secondary); }
.progress-bar-fill.blue { background: var(--accent); }
.progress-bar-fill.red { background: var(--danger); }

/* ============================================
   Stats 
   ============================================ */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-light);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-content h4 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.125rem;
}

.stat-content p {
  font-size: 0.85rem;
  color: var(--gray);
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.stat-change.up { color: var(--primary); }
.stat-change.down { color: var(--danger); }

/* ============================================
   Tables
   ============================================ */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-light);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-light);
}

.table td {
  padding: 1rem 1.25rem;
  font-size: 0.938rem;
  border-bottom: 1px solid var(--gray-light);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--gray-50);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand i {
  color: var(--primary-light);
}

.footer-desc {
  color: var(--gray);
  font-size: 0.938rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--dark-700);
  color: var(--gray);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer h5 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: var(--gray);
  font-size: 0.938rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--dark-700);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--gray);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--gray);
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--gray); }
.text-dark { color: var(--dark); }
.text-white { color: var(--white); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.bg-primary { background: var(--primary); }
.bg-primary-50 { background: var(--primary-50); }
.bg-gray-50 { background: var(--gray-50); }
.bg-gray-100 { background: var(--gray-100); }
.bg-white { background: var(--white); }
.bg-dark { background: var(--dark); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .section { padding: 4rem 0; }
  .btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Gradient Effects
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--primary-50) 0%, #ecfdf5 50%, #f0fdfa 100%);
}

.gradient-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 25%, #f0fdfa 50%, #eff6ff 75%, #faf5ff 100%);
}

.gradient-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-50) 100%);
}

/* ============================================
   Auth Pages Styles
   ============================================ */
/* Auth top bar */
.auth-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.auth-topbar .navbar-brand {
  color: var(--white);
  font-size: 1.4rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.auth-topbar .navbar-brand span {
  color: rgba(255, 255, 255, 0.9);
}

.auth-topbar .navbar-brand i {
  color: rgba(255, 255, 255, 0.95);
}

.auth-topbar .auth-topbar-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.auth-topbar .auth-topbar-link:hover {
  color: var(--white);
}

.auth-layout {
  min-height: 100vh;
  display: flex;
}

.auth-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--gray-50);
}

.auth-right {
  flex: 1;
  background: linear-gradient(160deg, #15803d 0%, #065f46 50%, #064e3b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.auth-right::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.auth-right::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
}

.auth-right-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 480px;
}

.auth-right-content h2 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.auth-right-content > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.auth-feature:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auth-feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  font-size: 1.1rem;
  backdrop-filter: blur(4px);
}

.auth-feature h5 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.auth-feature p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.5;
}

.auth-form-container {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-100);
}

.auth-form-header {
  margin-bottom: 1.75rem;
}

.auth-form-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.auth-form-header p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .auth-right {
    display: none;
  }
  .auth-left {
    background: var(--white);
    padding: 5rem 1.5rem 2rem;
  }
  .auth-topbar {
    background: var(--primary);
    box-shadow: var(--shadow);
  }
  .auth-form-container {
    max-width: 520px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
    padding: 2.5rem;
  }
}

@media (max-width: 640px) {
  .auth-left {
    padding: 5rem 1rem 1.5rem;
  }
  .auth-form-container {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
  }
  .auth-form-header h1 {
    font-size: 1.5rem;
  }
  .auth-topbar {
    padding: 0.875rem 1.25rem;
  }
  .auth-topbar .auth-topbar-link {
    font-size: 0.8rem;
  }
}

/* ============================================
   Dashboard Layout
   ============================================ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 4.5rem;
}

.sidebar {
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--gray-light);
  padding: 1.5rem 0;
  position: fixed;
  top: 4.5rem;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-section {
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--dark-600);
  border-radius: var(--radius);
  transition: var(--transition);
}

.sidebar-link:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.sidebar-link.active {
  background: var(--primary-100);
  color: var(--primary-dark);
}

.sidebar-link i {
  width: 1.25rem;
  text-align: center;
  font-size: 1rem;
}

.sidebar-link .sidebar-badge {
  margin-left: auto;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  background: var(--gray-50);
  min-height: calc(100vh - 4.5rem);
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.dashboard-header p {
  font-size: 0.938rem;
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }

  .dashboard-main {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-main {
    padding: 1rem;
  }

  .dashboard-header h2 {
    font-size: 1.35rem;
  }

  .dashboard-header p {
    font-size: 0.85rem;
  }
}

/* ============================================
   Pricing 
   ============================================ */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

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

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

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

.pricing-desc {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.938rem;
  color: var(--dark-600);
}

.pricing-features li i {
  color: var(--primary);
  font-size: 0.875rem;
}

.pricing-features li.disabled {
  color: var(--gray);
}

.pricing-features li.disabled i {
  color: var(--gray);
}

/* ============================================
   Task Timeline
   ============================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.5rem;
  width: 2px;
  background: var(--gray-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.625rem;
  top: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--gray-light);
  border: 2px solid var(--white);
}

.timeline-item.completed::before {
  background: var(--primary);
}

.timeline-item.current::before {
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.timeline-item.upcoming::before {
  background: var(--gray-light);
}

.timeline-content {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}

.timeline-content h5 {
  margin-bottom: 0.25rem;
}

.timeline-content p {
  font-size: 0.85rem;
}

/* ============================================
   Tooltips
   ============================================ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  background: var(--dark);
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  z-index: 10;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}
