@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --primary: #0052ff;
  --primary-hover: #0041cc;
  --primary-light: #e0ebff;
  
  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-light: #94a3b8;
  
  --success: #10b981;
  --success-light: #d1fae5;
  --success-dark: #065f46;
  
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-dark: #92400e;
  
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --danger-dark: #991b1b;
  
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  
  /* Dashboard Dark Theme Tokens */
  --dash-bg: #090e1a;
  --dash-card: #121829;
  --dash-border: #1e293b;
  --dash-text: #f8fafc;
  --dash-text-muted: #94a3b8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 80px;
  display: flex;
  align-items: center;
}

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

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-medium);
  font-size: 15px;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 15px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(0, 82, 255, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(0, 82, 255, 0.3);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--primary);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-medium);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-dark);
}

.btn-success {
  background-color: var(--success);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  background-color: var(--success-dark);
  transform: translateY(-1px);
}

.btn-large {
  padding: 14px 28px;
  font-size: 17px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* Sections Base */
section {
  padding: 80px 0;
  overflow: hidden;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-header p {
  color: var(--text-medium);
  font-size: 17px;
}

/* Hero Section */
.hero {
  padding: 100px 0 80px 0;
  position: relative;
  background: radial-gradient(circle at 80% 20%, #e0ebff 0%, var(--bg-primary) 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-badge-icon {
  background-color: var(--success);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
}

.hero-badge-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-medium);
}

.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), #00a3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-medium);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-medium);
}

.trust-item i {
  color: var(--success);
  font-size: 16px;
}

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

.mockup-wrapper {
  background-color: var(--dash-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--dash-border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
  padding-bottom: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: var(--danger); }
.dot-yellow { background-color: var(--warning); }
.dot-green { background-color: var(--success); }

.mockup-title {
  color: var(--dash-text-muted);
  font-size: 12px;
  font-family: monospace;
  margin-left: 10px;
}

.mockup-body {
  color: var(--dash-text);
  font-family: 'Inter', sans-serif;
}

.mockup-proposal-card {
  background-color: var(--dash-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid #1e293b;
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
}

.mockup-label {
  color: var(--dash-text-muted);
}

.mockup-value {
  font-weight: 600;
}

.mockup-status-badge {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.mockup-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--dash-border);
}

.mockup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 45%;
}

.mockup-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--dash-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: bold;
}

.mockup-step-circle.active {
  background-color: var(--success);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.mockup-step-circle.pending {
  background-color: var(--primary);
  color: #fff;
  animation: pulse-primary 2s infinite;
}

@keyframes pulse-primary {
  0% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 82, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0); }
}

.mockup-step-label {
  font-size: 11px;
  color: var(--dash-text-muted);
}

/* How It Works Section */
.how-it-works-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 24px;
}

.timeline-line {
  position: absolute;
  top: 40px;
  left: 12.5%;
  width: 75%;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-card {
  position: relative;
  z-index: 2;
  text-align: center;
  background-color: var(--bg-secondary);
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.step-num-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 0 0 1px var(--border-color);
  transition: all var(--transition-normal);
}

.timeline-card:hover .step-num-icon {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 82, 255, 0.4);
}

.timeline-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.timeline-card p {
  font-size: 14px;
  color: var(--text-medium);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-secondary);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: var(--transition-fast);
}

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

.feature-card:hover::before {
  background-color: var(--primary);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
}

.feature-card.sec .feature-icon-box {
  background-color: var(--success-light);
  color: var(--success);
}

.feature-card.sec:hover::before {
  background-color: var(--success);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-medium);
  font-size: 15px;
}

/* Interactive Portal Section */
.portal-section {
  background-color: var(--dash-bg);
  color: var(--dash-text);
  padding: 100px 0;
}

.portal-section .section-header h2 {
  color: #ffffff;
}

.portal-section .section-header p {
  color: var(--dash-text-muted);
}

.portal-container {
  background-color: var(--dash-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--dash-border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 700px;
}

/* Dashboard Control Top Bar */
.dash-ctrl-bar {
  background-color: #0d1527;
  padding: 16px 24px;
  border-bottom: 1px solid var(--dash-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.role-selector-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-label {
  font-size: 13px;
  color: var(--dash-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.role-options {
  display: flex;
  background-color: var(--dash-bg);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--dash-border);
}

.role-btn {
  background: transparent;
  border: none;
  color: var(--dash-text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.role-btn:hover {
  color: #ffffff;
}

.role-btn.active {
  background-color: var(--primary);
  color: #ffffff;
}

.role-btn.active.supplier-role {
  background-color: var(--primary);
}

.role-btn.active.buyer-role {
  background-color: var(--success);
}

.role-btn.active.admin-role {
  background-color: var(--warning);
}

.demo-db-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  color: var(--dash-text-muted);
  border: 1px solid var(--dash-border);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.demo-db-reset:hover {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.4);
  background-color: rgba(239, 68, 68, 0.05);
}

/* Dashboard Inner Layout */
.dash-inner-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
}

/* Dashboard Sidebar */
.dash-sidebar {
  background-color: #0b1121;
  border-right: 1px solid var(--dash-border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.user-profile-widget {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--dash-border);
  margin-bottom: 24px;
}

.user-avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 10px;
}

.user-avatar-initials.buyer-avatar {
  background-color: var(--success);
}

.user-avatar-initials.admin-avatar {
  background-color: var(--warning);
}

.user-profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.user-profile-role {
  font-size: 12px;
  color: var(--dash-text-muted);
}

.dash-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  color: var(--dash-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.dash-nav-item.active a, .dash-nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.sidebar-footer-stats {
  border-top: 1px solid var(--dash-border);
  padding-top: 20px;
  margin-top: 24px;
  font-size: 11px;
  color: var(--dash-text-muted);
}

.sidebar-stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sidebar-stats-val {
  color: #ffffff;
  font-weight: 600;
}

/* Dashboard Content Main Area */
.dash-content-area {
  padding: 32px;
  overflow-y: auto;
}

.dash-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.dash-page-header h2 {
  color: #ffffff;
  font-size: 24px;
}

/* Dashboard Statistics Panels */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dash-stat-card {
  background-color: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(0, 82, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.dash-stat-card.buyer-stat .dash-stat-icon {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.dash-stat-info {
  display: flex;
  flex-direction: column;
}

.dash-stat-label {
  font-size: 12px;
  color: var(--dash-text-muted);
}

.dash-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  margin-top: 2px;
}

/* Proposal Forms */
.proposal-form-container {
  background-color: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-full {
  grid-column: span 2;
}

.form-field label {
  font-size: 13px;
  color: var(--dash-text-muted);
  font-weight: 600;
}

.form-field input, .form-field select, .form-field textarea {
  background-color: var(--dash-bg);
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--primary);
}

.form-field input[readonly] {
  background-color: rgba(30, 41, 59, 0.2);
  color: var(--dash-text-muted);
  cursor: not-allowed;
}

/* Proposal List & Cards */
.proposals-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proposal-item-card {
  background-color: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition-fast);
  position: relative;
}

.proposal-item-card:hover {
  border-color: #334155;
}

.proposal-item-card.confirmed-proposal {
  border-left: 4px solid var(--success);
}

.proposal-item-card.pending-proposal {
  border-left: 4px solid var(--warning);
}

.proposal-item-card.rejected-proposal {
  border-left: 4px solid var(--danger);
}

.proposal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--dash-border);
  padding-bottom: 14px;
}

.proposal-order-id {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
}

.proposal-date {
  font-size: 12px;
  color: var(--dash-text-muted);
  margin-top: 2px;
}

.proposal-status-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.proposal-status-pill.status-pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.proposal-status-pill.status-approved-buyer {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.proposal-status-pill.status-approved-supplier {
  background-color: rgba(0, 82, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 82, 255, 0.2);
}

.proposal-status-pill.status-confirmed {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid var(--success);
}

.proposal-status-pill.status-rejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.proposal-status-pill.status-mod {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.proposal-card-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.proposal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proposal-meta-label {
  font-size: 11px;
  color: var(--dash-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.proposal-meta-val {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.proposal-notes-box {
  grid-column: span 4;
  background-color: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--dash-border);
  font-size: 13px;
  color: var(--dash-text-muted);
}

.proposal-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--dash-border);
  padding-top: 14px;
  align-items: center;
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state i {
  font-size: 48px;
  color: var(--dash-border);
  margin-bottom: 16px;
}

.empty-state p {
  color: var(--dash-text-muted);
  font-size: 15px;
}

/* Notifications Box */
.notification-log-panel {
  margin-top: 32px;
  background-color: #0b1121;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.notification-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
  padding-bottom: 10px;
}

.notification-log-header h4 {
  color: #ffffff;
  font-size: 15px;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
}

.notification-item {
  background-color: var(--dash-card);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  border-left: 3px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-item.notif-success { border-left-color: var(--success); }
.notification-item.notif-warning { border-left-color: var(--warning); }
.notification-item.notif-danger { border-left-color: var(--danger); }

.notif-time {
  color: var(--dash-text-muted);
  font-size: 10px;
}

/* Pricing Toggle and Table */
.pricing-section {
  background-color: var(--bg-primary);
}

.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.pricing-toggle-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-medium);
}

.pricing-toggle-label.active {
  color: var(--primary);
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #ffffff;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.toggle-switch.toggled {
  background-color: var(--primary);
}

.toggle-switch.toggled::after {
  transform: translateX(24px);
}

.pricing-grids-container {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.pricing-sub-header {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: -24px;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pricing-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 28px;
}

.currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  vertical-align: super;
}

.amount {
  font-size: 40px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
}

.period {
  color: var(--text-light);
  font-size: 14px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li i {
  color: var(--success);
  font-size: 14px;
}

.pricing-features li.disabled {
  color: var(--text-light);
  text-decoration: line-through;
}

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

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content h3 {
  font-size: 28px;
  margin-bottom: 18px;
}

.about-content p {
  color: var(--text-medium);
  margin-bottom: 24px;
  font-size: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.value-item {
  background-color: var(--bg-primary);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.value-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.value-item h4 i {
  color: var(--primary);
}

.value-item p {
  font-size: 13px;
  color: var(--text-medium);
  margin-bottom: 0;
}

/* Contact Page Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-details h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.contact-info-details p {
  color: var(--text-medium);
  font-size: 14px;
}

.whatsapp-direct-btn {
  background-color: #25d366;
  color: white;
  border: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 10px;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all var(--transition-fast);
}

.whatsapp-direct-btn:hover {
  background-color: #128c7e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Contact Form */
.contact-form-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form-card .form-field {
  margin-bottom: 20px;
}

.contact-form-card input, .contact-form-card textarea {
  border-color: var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-dark);
}

.contact-form-card input:focus, .contact-form-card textarea:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}

/* Auth Portal Section (Login / Sign Up Modals/Overlay) */
.auth-page-container {
  max-width: 440px;
  margin: 80px auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.auth-tab-btn {
  flex: 1;
  background-color: var(--bg-tertiary);
  border: none;
  padding: 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background-color: var(--bg-secondary);
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.auth-form-wrap {
  padding: 32px;
}

.auth-form-wrap h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.auth-form-wrap .form-field {
  margin-bottom: 16px;
}

.auth-form-wrap input {
  border-color: var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-dark);
}

.auth-form-wrap input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}

/* Extra Features: Testimonials & FAQ & Blog */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: 16px;
  font-size: 14px;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text-medium);
  margin-bottom: 24px;
  font-style: italic;
}

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

.author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: bold;
}

.author-info h4 {
  font-size: 14px;
  line-height: 1.2;
}

.author-info p {
  font-size: 12px;
  color: var(--text-light);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question i {
  font-size: 14px;
  color: var(--text-medium);
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  background-color: var(--bg-primary);
  border-top: 1px solid transparent;
}

.faq-answer-inner {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-medium);
}

.faq-item.active {
  border-color: var(--primary-light);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  border-top-color: var(--border-color);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.blog-card-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
  font-size: 48px;
  position: relative;
}

.blog-card-img-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(0, 82, 255, 0.2) 0%, transparent 70%);
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.blog-card p {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 20px;
}

/* Footer Section */
footer {
  background-color: #0b1121;
  color: #94a3b8;
  padding: 80px 0 32px 0;
  border-top: 1px solid var(--dash-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 14px;
  margin: 16px 0 24px 0;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background-color: #1e293b;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--dash-text-muted);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.trust-badge {
  background-color: #1e293b;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid var(--dash-border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-badge i {
  color: var(--success);
}

.footer-bottom {
  border-top: 1px solid var(--dash-border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

/* Modal Windows: Simulated Razorpay Payment Gateway Overlay */
.gateway-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.gateway-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.gateway-modal {
  background-color: #ffffff;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: scale-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-dark);
}

@keyframes scale-up {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.gateway-header {
  background-color: #0b1c3f;
  color: #ffffff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gateway-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gateway-header-brand i {
  color: var(--primary);
  font-size: 20px;
}

.gateway-header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.gateway-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 18px;
}

.gateway-close:hover {
  color: #ffffff;
}

.gateway-summary {
  background-color: var(--bg-primary);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gateway-amount-label {
  font-size: 12px;
  color: var(--text-medium);
  font-weight: 600;
}

.gateway-amount-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.gateway-body {
  padding: 24px;
}

.gateway-method-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-medium);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gateway-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.gateway-method-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gateway-method-card:hover, .gateway-method-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.gateway-method-card i {
  font-size: 18px;
  color: var(--text-medium);
  width: 20px;
}

.gateway-method-card.selected i {
  color: var(--primary);
}

.gateway-method-text h5 {
  font-size: 14px;
  color: var(--text-dark);
}

.gateway-method-text p {
  font-size: 11px;
  color: var(--text-light);
}

.gateway-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

/* Spinner Animation */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.gateway-success-screen {
  text-align: center;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gateway-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
}

.gateway-success-screen h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.gateway-success-screen p {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 24px;
}

/* Toast System (Dashboard Alerts) */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background-color: #0b1121;
  color: #ffffff;
  border: 1px solid var(--dash-border);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slide-in 0.3s ease;
  border-left: 4px solid var(--primary);
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-danger { border-left-color: var(--danger); }

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal generic (For Blog Reading) */
.generic-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.generic-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.generic-modal {
  background-color: #ffffff;
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.generic-modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.generic-modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-medium);
}

.generic-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 15px;
  color: var(--text-medium);
}

.generic-modal-body h4 {
  color: var(--text-dark);
  margin-top: 20px;
  margin-bottom: 8px;
}

.generic-modal-body p {
  margin-bottom: 16px;
}

/* CSS Utilities */
.text-center { text-align: center; }
.mr-auto { margin-right: auto; }
.ml-auto { margin-left: auto; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-ctas, .hero-trust {
    justify-content: center;
  }
  .how-it-works-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-line {
    display: none;
  }
  .features-grid, .blog-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }
  nav {
    display: none; /* Mobile menu can toggle in production, for demo we keep simplicity */
  }
  .hero h1 {
    font-size: 36px;
  }
  .how-it-works-timeline, .features-grid, .blog-grid, .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  .dash-inner-layout {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--dash-border);
  }
  .dash-stats-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field-full {
    grid-column: span 1;
  }
  .proposal-card-body {
    grid-template-columns: 1fr 1fr;
  }
  .proposal-notes-box {
    grid-column: span 2;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-form-card {
    padding: 24px;
  }
}
