/* ============================================
   GudangMitra - Design System
   Premium Purple/Indigo Theme
   ============================================ */

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

/* CSS Variables */
:root {
  /* Primary Colors */
  --primary: #4318FF;
  --primary-light: #6C4FFF;
  --primary-dark: #2D0FBF;
  --primary-gradient: linear-gradient(135deg, #4318FF 0%, #7B5AFF 100%);
  --primary-bg: #F0EDFF;
  
  /* Accent Colors */
  --accent-green: #05CD99;
  --accent-green-light: #E6FAF5;
  --accent-red: #EE5D50;
  --accent-red-light: #FDE8E6;
  --accent-orange: #FFB547;
  --accent-orange-light: #FFF4E0;
  --accent-blue: #3B82F6;
  --accent-blue-light: #EBF5FF;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F4F7FE;
  --gray-200: #E9EDF7;
  --gray-300: #D0D5DD;
  --gray-400: #A3AED0;
  --gray-500: #707EAE;
  --gray-600: #4A5568;
  --gray-700: #2D3748;
  --gray-800: #1B2559;
  --gray-900: #0F1535;
  
  /* Dark Theme */
  --dark-bg: #0B1437;
  --dark-card: #111C44;
  --dark-border: #1B254B;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(67, 24, 255, 0.08);
  --shadow-lg: 0 8px 30px rgba(67, 24, 255, 0.12);
  --shadow-xl: 0 12px 40px rgba(67, 24, 255, 0.18);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 30px rgba(67, 24, 255, 0.15);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  transition: var(--transition-base);
}

input, select, textarea {
  font-family: var(--font-primary);
  outline: none;
  border: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gray { color: var(--gray-500); }
.text-white { color: var(--white); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.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); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition-base);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(67, 24, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(67, 24, 255, 0.45);
}

.btn-outline {
  background: var(--white);
  color: var(--gray-800);
  border: 2px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) 0;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.navbar.scrolled .navbar-brand {
  color: var(--primary);
}

.navbar-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.navbar.scrolled .navbar-brand .brand-icon {
  background: var(--primary-gradient);
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: var(--gray-600);
}

.navbar.scrolled .nav-links a::after {
  background: var(--primary);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
}

.nav-login {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-login:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar.scrolled .nav-login {
  color: var(--primary);
  border-color: var(--primary);
}

.navbar.scrolled .nav-login:hover {
  background: var(--primary);
  color: var(--white);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition-base);
  border-radius: 2px;
}

.navbar.scrolled .mobile-toggle span {
  background: var(--gray-800);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(123, 90, 255, 0.4), transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(5, 205, 153, 0.15), transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

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

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.6s ease;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.1s both;
}

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

.hero-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-illustration {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
}

/* Floating Elements */
.hero-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-xl);
  animation: floatCard 4s ease-in-out infinite;
  z-index: 2;
}

.hero-float:nth-child(1) {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.hero-float:nth-child(2) {
  bottom: 15%;
  left: -5%;
  animation-delay: 1s;
}

.hero-float:nth-child(3) {
  bottom: 5%;
  right: 5%;
  animation-delay: 2s;
}

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

.hero-float .float-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.hero-float .float-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
}

.hero-float .float-label {
  font-size: 0.8rem;
  color: var(--gray-500);
}

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

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

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

/* ============================================
   Stats Section
   ============================================ */
.stats {
  background: var(--white);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.stats-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-2xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

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

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}

.stat-number span {
  color: var(--accent-green);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-top: var(--space-xs);
}

/* ============================================
   Features Section
   ============================================ */
.features {
  background: var(--gray-100);
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: var(--transition-base);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: var(--transition-base);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card.featured {
  background: var(--primary-gradient);
  color: var(--white);
}

.feature-card.featured h3,
.feature-card.featured p {
  color: var(--white);
}

.feature-card.featured::before {
  background: rgba(255, 255, 255, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  background: var(--primary-bg);
  color: var(--primary);
}

.feature-card.featured .feature-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================
   Why Section
   ============================================ */
.why-section {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.why-visual {
  position: relative;
}

.why-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.why-image-wrapper img {
  width: 100%;
  display: block;
}

.why-content h2 {
  font-size: 2.2rem;
  margin-bottom: var(--space-lg);
}

.why-content h2 .highlight {
  color: var(--primary);
}

.why-content > p {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.why-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.why-item-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--primary-bg);
  color: var(--primary);
}

.why-item-text h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.why-item-text p {
  font-size: 0.88rem;
  color: var(--gray-500);
}

/* ============================================
   Platform Preview Section
   ============================================ */
.platform-section {
  padding: var(--space-4xl) 0;
  background: var(--gray-100);
}

.platform-preview {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}

.platform-preview img {
  width: 100%;
  display: block;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: var(--space-4xl) 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 90, 255, 0.5), transparent 70%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--gray-900);
  padding: var(--space-3xl) 0 var(--space-lg);
  color: var(--gray-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand .navbar-brand {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.footer-col a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-bottom {
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 1rem;
}

.footer-socials a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ============================================
   Login Page
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
}

.auth-left {
  flex: 1;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 90, 255, 0.4), transparent 70%);
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(5, 205, 153, 0.15), transparent 70%);
}

.auth-left-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 400px;
}

.auth-left-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.auth-left-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-illustration {
  margin-bottom: var(--space-xl);
}

.auth-illustration svg {
  width: 300px;
  height: auto;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  background: var(--gray-50);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-container h1 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.auth-form-container .auth-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: var(--space-xl);
}

.role-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.role-btn {
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition-base);
}

.role-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

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

.role-btn .role-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 4px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--gray-800);
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  font-size: 0.88rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.form-link {
  color: var(--primary);
  font-weight: 500;
}

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

.form-submit {
  width: 100%;
  margin-bottom: var(--space-md);
}

.form-divider {
  text-align: center;
  position: relative;
  margin: var(--space-lg) 0;
  color: var(--gray-400);
  font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--gray-200);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.demo-accounts {
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-lg);
}

.demo-accounts h4 {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.demo-accounts p {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.demo-accounts code {
  background: rgba(67, 24, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* ============================================
   Dashboard Layout
   ============================================ */
.dashboard {
  display: flex;
  min-height: 100vh;
  background: var(--gray-100);
}

.sidebar {
  width: 280px;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: var(--transition-base);
}

.sidebar-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-header .navbar-brand {
  color: var(--primary);
  font-size: 1.3rem;
}

.sidebar-header .navbar-brand .brand-icon {
  background: var(--primary-gradient);
  color: var(--white);
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-md);
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: var(--space-lg);
}

.sidebar-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xs);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition-base);
  cursor: pointer;
  margin-bottom: 2px;
}

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

.sidebar-link.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-link .link-icon {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar-link .link-badge {
  margin-left: auto;
  background: var(--accent-red);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

.sidebar-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--gray-200);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
}

.sidebar-user .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.sidebar-user .user-info {
  flex: 1;
}

.sidebar-user .user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800);
}

.sidebar-user .user-role {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Dashboard Main */
.dashboard-main {
  flex: 1;
  margin-left: 280px;
  padding: var(--space-lg);
  min-height: 100vh;
}

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

.dashboard-header h1 {
  font-size: 1.6rem;
}

.dashboard-header .date-display {
  font-size: 0.88rem;
  color: var(--gray-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  min-width: 240px;
}

.search-box input {
  border: none;
  background: transparent;
  font-size: 0.88rem;
  flex: 1;
}

.search-box .search-icon {
  color: var(--gray-400);
}

.notification-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--gray-600);
}

.notification-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--accent-red);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Dashboard Cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.dash-stat-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.dash-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-bg);
  transform: translate(30%, -30%);
  opacity: 0.5;
}

.dash-stat-card .stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.dash-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.dash-stat-card .stat-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

.stat-change.positive {
  color: var(--accent-green);
  background: var(--accent-green-light);
}

.stat-change.negative {
  color: var(--accent-red);
  background: var(--accent-red-light);
}

.dash-stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.dash-stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Dashboard Panels */
.dash-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
}

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.dash-panel-header h3 {
  font-size: 1.1rem;
}

.dash-panel-header .panel-actions {
  display: flex;
  gap: var(--space-sm);
}

.panel-tab {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-500);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-base);
}

.panel-tab.active,
.panel-tab:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: var(--space-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gray-200);
}

.data-table td {
  padding: var(--space-md);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

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

.data-table .product-cell {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.data-table .product-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.data-table .product-info .product-name {
  font-weight: 600;
  color: var(--gray-800);
}

.data-table .product-info .product-sku {
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.success {
  background: var(--accent-green-light);
  color: var(--accent-green);
}

.status-badge.warning {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
}

.status-badge.danger {
  background: var(--accent-red-light);
  color: var(--accent-red);
}

.status-badge.info {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
}

.status-badge.primary {
  background: var(--primary-bg);
  color: var(--primary);
}

/* Star Rating */
.star-rating {
  color: var(--accent-orange);
  font-size: 0.85rem;
  display: flex;
  gap: 2px;
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar .progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  transition: width 1s ease;
}

.progress-bar .progress-fill.green {
  background: linear-gradient(135deg, var(--accent-green), #00E5A0);
}

.progress-bar .progress-fill.orange {
  background: linear-gradient(135deg, var(--accent-orange), #FFD700);
}

/* Calculator */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.calc-input-group {
  margin-bottom: var(--space-md);
}

.calc-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  display: block;
  margin-bottom: var(--space-sm);
}

.calc-input-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.calc-input-group input:focus {
  border-color: var(--primary);
  background: var(--white);
}

.calc-result {
  background: var(--primary-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
}

.calc-result .result-label {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
}

.calc-result .result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.calc-result .result-note {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: var(--space-sm);
}

/* Academy Cards */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.academy-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  border: 1px solid var(--gray-200);
}

.academy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.academy-card .card-image {
  height: 160px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.academy-card .card-image .card-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.academy-card .card-body {
  padding: var(--space-lg);
}

.academy-card .card-body h4 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.academy-card .card-body p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

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

/* Dashboard Content Panels */
.content-panel {
  display: none;
}

.content-panel.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

/* Guarantee/Escrow Panel */
.escrow-timeline {
  position: relative;
  padding-left: 40px;
}

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

.escrow-step {
  position: relative;
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gray-200);
}

.escrow-step.completed {
  border-left-color: var(--accent-green);
}

.escrow-step.active {
  border-left-color: var(--primary);
  background: var(--primary-bg);
}

.escrow-step::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 2px solid var(--white);
}

.escrow-step.completed::before {
  background: var(--accent-green);
}

.escrow-step.active::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.2);
}

.escrow-step h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.escrow-step p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Charts placeholder */
.chart-container {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
  height: 200px;
  width: 100%;
  padding: 0 var(--space-xl);
}

.chart-bar {
  flex: 1;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 20px;
  position: relative;
  transition: height 1s ease;
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 0.85;
}

.chart-bar::after {
  content: attr(data-label);
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--gray-400);
  white-space: nowrap;
}

.chart-bar.green {
  background: linear-gradient(135deg, var(--accent-green), #00E5A0);
}

.chart-bar.orange {
  background: linear-gradient(135deg, var(--accent-orange), #FFD700);
}

/* Ranking Cards */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.ranking-item:hover {
  background: var(--primary-bg);
}

.ranking-position {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  background: var(--gray-200);
  color: var(--gray-600);
}

.ranking-position.gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: var(--white);
}

.ranking-position.silver {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  color: var(--white);
}

.ranking-position.bronze {
  background: linear-gradient(135deg, #CD7F32, #A0522D);
  color: var(--white);
}

.ranking-info {
  flex: 1;
}

.ranking-info .ranking-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-800);
}

.ranking-info .ranking-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
}

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

.ranking-score .score-value {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}

.ranking-score .score-label {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* Product Recommendation Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  border: 1px solid var(--gray-200);
  position: relative;
}

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

.product-card .card-image {
  height: 180px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.product-card .card-image .trending-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 4px 10px;
  background: var(--accent-red);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card .card-image .ai-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 4px 10px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card .card-body {
  padding: var(--space-md);
}

.product-card .card-body h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.product-card .card-body .product-supplier {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-sm);
}

.product-card .product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.product-card .product-margin {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-green);
  background: var(--accent-green-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Validation Panel */
.validation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.validation-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--gray-200);
}

.validation-card h4 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.validation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--gray-200);
}

.validation-item:last-child {
  border-bottom: none;
}

.validation-item .v-label {
  font-size: 0.88rem;
  color: var(--gray-600);
}

.validation-item .v-status {
  font-size: 0.82rem;
  font-weight: 600;
}

.validation-item .v-status.pass {
  color: var(--accent-green);
}

.validation-item .v-status.fail {
  color: var(--accent-red);
}

.validation-item .v-status.pending {
  color: var(--accent-orange);
}

/* Dashboard Grid Layouts */
.dash-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.dash-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

/* Sidebar Toggle for Mobile */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 200;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* Toast / Notifications */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  animation: slideInRight 0.4s ease, fadeOut 0.4s ease 3s forwards;
  min-width: 300px;
  border-left: 4px solid var(--primary);
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent-red); }
.toast.warning { border-left-color: var(--accent-orange); }

.toast .toast-icon {
  font-size: 1.2rem;
}

.toast .toast-message {
  flex: 1;
  font-size: 0.88rem;
  color: var(--gray-700);
}

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

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(50px); }
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--gray-400);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
}

.empty-state h3 {
  color: var(--gray-600);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 300px;
  margin: 0 auto;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  max-width: 500px;
  width: 90%;
  transform: scale(0.9);
  transition: var(--transition-bounce);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.modal-header h3 {
  font-size: 1.2rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
}

.modal-close:hover {
  background: var(--accent-red-light);
  color: var(--accent-red);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calculator-grid,
  .dash-grid-2,
  .dash-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .academy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .auth-page {
    flex-direction: column;
  }
  
  .auth-left {
    min-height: 300px;
    padding: var(--space-xl);
  }
  
  .auth-right {
    padding: var(--space-xl);
  }
  
  .role-selector {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  /* Dashboard Mobile */
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-toggle {
    display: flex;
  }
  
  .dashboard-main {
    margin-left: 0;
  }
  
  .dash-stats {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }
  
  .header-actions {
    width: 100%;
  }
  
  .search-box {
    flex: 1;
    min-width: auto;
  }
  
  .academy-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .validation-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: var(--primary-bg);
  color: var(--primary);
}

/* Animations for scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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