/* ========================================
   IDA System & Supports Ltd - Main Stylesheet
   Color Scheme: Navy Blue & Green
   ======================================== */

/* ---- CSS Variables ---- */
:root {
  --navy-dark: #0a1628;
  --navy: #0f2044;
  --navy-mid: #1a365d;
  --navy-light: #2d4a7a;
  --green: #10b981;
  --green-dark: #059669;
  --green-light: #d1fae5;
  --green-pale: #ecfdf5;
  --accent-cyan: #06b6d4;
  --accent-orange: #f59e0b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { color: var(--text-mid); line-height: 1.7; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 12px;
  background: var(--green-pale);
  padding: 6px 16px;
  border-radius: 50px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}
.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 32, 68, 0.3);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green), var(--accent-cyan));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  font-family: 'Poppins', sans-serif;
}
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
}
.logo-text span { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: white; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-actions .btn { padding: 10px 22px; font-size: 0.85rem; }
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: var(--transition);
  border-radius: 2px;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  color: white;
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stat h3 {
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 4px;
}
.hero-stat p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.hero-visual {
  position: relative;
}
.hero-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.hero-card-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-card-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.hero-card-dot:nth-child(1) { background: #ef4444; }
.hero-card-dot:nth-child(2) { background: #f59e0b; }
.hero-card-dot:nth-child(3) { background: #10b981; }
.hero-card-code {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 2;
}
.hero-card-code .keyword { color: var(--accent-cyan); }
.hero-card-code .string { color: var(--green); }
.hero-card-code .function { color: var(--accent-orange); }
.floating-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}
.floating-badge.top-right {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}
.floating-badge.bottom-left {
  bottom: -20px;
  left: -20px;
  animation-delay: 1.5s;
}
.floating-badge i {
  font-size: 1.3rem;
}
.floating-badge .badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}
.floating-badge .badge-sub {
  font-size: 0.7rem;
  color: var(--text-light);
}

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

/* ---- Services Section ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--accent-cyan));
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.service-icon.green { background: var(--green-pale); color: var(--green-dark); }
.service-icon.blue { background: #eff6ff; color: var(--navy-mid); }
.service-icon.cyan { background: #ecfeff; color: #0891b2; }
.service-icon.orange { background: #fff7ed; color: #ea580c; }
.service-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.service-card p { font-size: 0.9rem; }

/* ---- Marketplace Section ---- */
.marketplace-section { background: white; }
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-image {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-image i {
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
}
.product-image .product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--green);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.product-info {
  padding: 24px;
}
.product-info h3 { margin-bottom: 8px; font-size: 1.1rem; }
.product-info p { font-size: 0.85rem; margin-bottom: 16px; }
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.product-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 50px;
  font-weight: 500;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.2rem;
}
.product-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ---- Templates Section ---- */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.template-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  cursor: pointer;
}
.template-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.template-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.template-icon.excel { background: #dcfce7; color: #16a34a; }
.template-icon.word { background: #dbeafe; color: #2563eb; }
.template-icon.pdf { background: #fee2e2; color: #dc2626; }
.template-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.template-info p { font-size: 0.78rem; }
.template-download {
  margin-left: auto;
  color: var(--green);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---- News Section ---- */
.news-section { background: white; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.news-image {
  height: 180px;
  background: linear-gradient(135deg, var(--navy-mid), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-image i { font-size: 2.5rem; color: rgba(255,255,255,0.3); }
.news-body { padding: 24px; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}
.news-category {
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.72rem;
}
.news-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.news-body p { font-size: 0.85rem; margin-bottom: 16px; }
.news-link {
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-link:hover { gap: 10px; }

/* ---- Newsletter Section ---- */
.newsletter-section {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy), var(--navy-mid));
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.newsletter-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}
.newsletter-inner h2 { color: white; margin-bottom: 12px; }
.newsletter-inner p { color: rgba(255,255,255,0.6); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus {
  border-color: var(--green);
  background: rgba(255,255,255,0.15);
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--green-pale);
}
.cta-inner {
  text-align: center;
}
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p { margin-bottom: 32px; max-width: 550px; margin-left: auto; margin-right: auto; }
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: 16px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--green);
  padding-left: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--green); }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-dark);
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
textarea.form-input { resize: vertical; min-height: 120px; }
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

/* ---- Auth Pages ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
}
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.auth-left-content {
  position: relative;
  z-index: 2;
  max-width: 400px;
}
.auth-left-content h2 { color: white; font-size: 2rem; margin-bottom: 16px; }
.auth-left-content p { color: rgba(255,255,255,0.6); font-size: 1rem; margin-bottom: 32px; }
.auth-features { list-style: none; }
.auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 8px 0;
}
.auth-features li i { color: var(--green); }
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: white;
}
.auth-form-container {
  width: 100%;
  max-width: 420px;
}
.auth-form-container h2 {
  margin-bottom: 8px;
}
.auth-form-container .auth-subtitle {
  color: var(--text-mid);
  margin-bottom: 32px;
  font-size: 0.9rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 0.8rem;
  color: var(--text-light);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.auth-footer a {
  color: var(--green);
  font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- Dashboard ---- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}
.sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}
.sidebar-menu { padding: 0 12px; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.sidebar-item:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}
.sidebar-item.active {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 600;
}
.sidebar-item i { width: 20px; text-align: center; }
.sidebar-section {
  padding: 0 16px;
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
}
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.dashboard-header h1 { font-size: 1.8rem; }
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}
.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.stat-card-header span { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }
.stat-card-header i { font-size: 1.2rem; color: var(--green); }
.stat-card h3 { font-size: 1.8rem; color: var(--navy); margin-bottom: 4px; }
.stat-card p { font-size: 0.8rem; }
.stat-card p.positive { color: var(--green); }
.dashboard-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
}
.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dashboard-card-header h3 { font-size: 1.1rem; }

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy), var(--navy-mid));
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header h1 { color: white; margin-bottom: 12px; position: relative; z-index: 2; }
.page-header p { color: rgba(255,255,255,0.6); font-size: 1.1rem; position: relative; z-index: 2; }
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}
.breadcrumbs a { color: rgba(255,255,255,0.5); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span { color: rgba(255,255,255,0.3); }

/* ---- Tags / Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-green { background: var(--green-pale); color: var(--green-dark); }
.badge-blue { background: #eff6ff; color: var(--navy-mid); }
.badge-orange { background: #fff7ed; color: #ea580c; }

/* ---- Table ---- */
.table-responsive { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
tr:hover { background: var(--bg-light); }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateY(120%);
  transition: var(--transition);
  font-size: 0.9rem;
}
.toast.show { transform: translateY(0); }
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid #ef4444; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg-light); color: var(--text-dark); }

/* ---- Responsive ---- */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-left { display: none; }
  .sidebar { display: none; }
  .dashboard-main { margin-left: 0; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-toggle { display: flex; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .marketplace-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-dark);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-menu a:hover { background: rgba(255,255,255,0.05); color: white; }
.mobile-menu .btn { margin-top: 16px; text-align: center; justify-content: center; }

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Misc Utilities ---- */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-navy { color: var(--navy); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
