/* ============================================
   Work Gaurantee PK — Design System
   Premium White + Emerald 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 (Design Tokens)
   ============================================ */
:root {
  /* Primary Colors */
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --navy-500: #64748b;

  /* Accent Colors */
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-600: #059669;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;

  /* Status Colors */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  --gradient-accent: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-500) 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f4c75 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);

  /* Light Theme Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-glow-emerald: 0 4px 20px rgba(16, 185, 129, 0.2);
  --shadow-glow-navy: 0 4px 20px rgba(37, 75, 133, 0.15);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-700);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p {
  color: var(--gray-500);
  line-height: 1.7;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-small {
  font-size: 0.875rem;
}

.text-muted {
  color: var(--gray-400);
}

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

.container-sm {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-md {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

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

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

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

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

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

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

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.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-weight: 800;
  font-size: 1.4rem;
  color: var(--navy-900);
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
}

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

.navbar-links a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: var(--space-xs) 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.navbar-links a:hover {
  color: var(--emerald-600);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-links a.active {
  color: var(--emerald-600);
}

.navbar-links a.active::after {
  width: 100%;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: var(--z-modal);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-glow-emerald);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--emerald-500);
  color: var(--emerald-600);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--emerald-400);
  border: 2px solid var(--emerald-500);
}

.btn-outline:hover {
  background: var(--emerald-500);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--error);
  color: var(--white);
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

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

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

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

.card-glow:hover {
  box-shadow: var(--shadow-glow-emerald);
}

/* Provider Card */
.provider-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.provider-card:hover {
  border-color: var(--emerald-400);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), var(--shadow-glow-emerald);
}

.provider-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  position: relative;
}

.provider-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.9);
  color: var(--white);
  backdrop-filter: blur(10px);
}

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

.provider-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: var(--space-xs);
}

.provider-card-category {
  font-size: 0.85rem;
  color: var(--emerald-600);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.provider-card-bio {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--gray-200);
}

.provider-card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.provider-card-rating i {
  color: var(--warning);
  font-size: 0.85rem;
}

.provider-card-rating span {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
}

.provider-card-price {
  font-weight: 700;
  color: var(--emerald-600);
  font-size: 0.95rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.2rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--emerald-600);
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

.hero-badge i {
  font-size: 0.7rem;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.hero p {
  font-size: 1.15rem;
  max-width: 550px;
  margin-bottom: var(--space-2xl);
  color: var(--gray-600);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--gray-200);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-900);
}

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

/* ============================================
   Category Cards
   ============================================ */
.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-card:hover {
  border-color: var(--emerald-400);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), var(--shadow-glow-emerald);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.8rem;
  color: var(--emerald-400);
  transition: all var(--transition-base);
}

.category-card:hover .category-icon {
  background: var(--gradient-accent);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-emerald);
}

.category-card h3 {
  margin-bottom: var(--space-sm);
}

.category-card p {
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

.category-count {
  font-size: 0.85rem;
  color: var(--emerald-600);
  font-weight: 600;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.section-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--emerald-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

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

.section-header p {
  font-size: 1.05rem;
}

/* ============================================
   How It Works
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald-500), transparent);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  box-shadow: var(--shadow-glow-emerald);
}

.step-card h4 {
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: 0.9rem;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--navy-900);
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background: var(--white);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--white);
  color: var(--navy-900);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: var(--space-xs);
}

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

/* ============================================
   Auth Pages (Login / Register)
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.auth-header h2 {
  margin-bottom: var(--space-sm);
}

.auth-header p {
  font-size: 0.95rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--gray-500);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 0.9rem;
  color: var(--gray-400);
}

.auth-footer a {
  color: var(--emerald-600);
  font-weight: 600;
}

.auth-footer a:hover {
  color: var(--emerald-500);
}

/* Role Selection */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.role-option {
  padding: var(--space-lg);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.role-option:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.role-option.selected {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: var(--shadow-glow-emerald);
}

.role-option i {
  font-size: 1.8rem;
  color: var(--emerald-400);
  margin-bottom: var(--space-sm);
  display: block;
}

.role-option h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.role-option p {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.role-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* ============================================
   Profile Page
   ============================================ */
.profile-hero {
  padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
  border-bottom: 1px solid var(--gray-200);
}

.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  border: 3px solid var(--emerald-500);
  overflow: hidden;
  box-shadow: var(--shadow-glow-emerald);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h1 {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
  color: var(--navy-900);
}

.profile-category-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.3rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-full);
  color: var(--emerald-600);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.profile-meta {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--gray-400);
}

.profile-meta-item i {
  color: var(--emerald-400);
}

.profile-sidebar {
  position: sticky;
  top: 100px;
}

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

.profile-sidebar .btn {
  width: 100%;
  margin-bottom: var(--space-sm);
}

/* Reviews Section */
.reviews-section {
  margin-top: var(--space-2xl);
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

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

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-400);
  font-weight: 700;
  font-size: 1rem;
}

.review-meta h5 {
  font-size: 0.95rem;
  color: var(--navy-900);
  margin-bottom: 2px;
}

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

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.review-stars i {
  font-size: 0.85rem;
  color: var(--warning);
}

.review-stars i.empty {
  color: var(--gray-600);
}

.review-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Star Rating Input */
.star-rating-input {
  display: flex;
  gap: var(--space-xs);
  direction: rtl;
  justify-content: flex-end;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  font-size: 1.5rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
  color: var(--warning);
}

.star-rating-input input:checked ~ label {
  color: var(--warning);
}

/* ============================================
   Listings Page
   ============================================ */
.listings-hero {
  padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
  border-bottom: 1px solid var(--gray-200);
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.4rem 0.4rem 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.search-bar:focus-within {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--navy-900);
  padding: 0.5rem;
  font-size: 0.95rem;
}

.search-bar input::placeholder {
  color: var(--gray-500);
}

.search-bar .btn {
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  justify-content: center;
}

.filter-chip {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.filter-chip:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-600);
}

.filter-chip.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--emerald-500);
  color: var(--emerald-600);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
}

/* ============================================
   Job Cards (Posted Jobs)
   ============================================ */
.job-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.job-card:hover {
  border-color: var(--gray-300);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.job-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.job-status {
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.job-status.open {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.job-status.closed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.job-card-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.job-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--gray-400);
}

.job-card-meta i {
  color: var(--emerald-400);
  font-size: 0.8rem;
}

.job-card-description {
  font-size: 0.9rem;
  color: var(--gray-300);
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 300px;
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  color: var(--navy-900);
}

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column ul li a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.footer-column ul li a:hover {
  color: var(--emerald-600);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

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

/* ============================================
   Toast / Notifications
   ============================================ */
.toast-container {
  position: fixed;
  top: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-toast);
  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: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  min-width: 300px;
  max-width: 450px;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-xl);
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--error);
}

.toast.info {
  border-left: 3px solid var(--info);
}

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

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.info .toast-icon { color: var(--info); }

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

.toast-close {
  color: var(--gray-500);
  cursor: pointer;
  padding: var(--space-xs);
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--white);
}

/* ============================================
   Empty States
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
}

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

.empty-state p {
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto var(--space-xl);
}

/* ============================================
   Modal
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--transition-base);
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  width: 90%;
  max-width: 520px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  z-index: var(--z-modal);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

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

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

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

.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

/* ============================================
   Loader / Spinner
   ============================================ */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--emerald-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

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

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

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

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

.animate-slide-up {
  animation: slideUp 0.6s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered Animation Delays */
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px var(--space-xl) var(--space-xl);
    transition: right var(--transition-base);
    border-left: 1px solid var(--gray-200);
    z-index: var(--z-modal-backdrop);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }

  .navbar-links.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .listings-grid {
    grid-template-columns: 1fr;
  }

  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
  }

  .search-bar input {
    width: 100%;
  }

  .search-bar .btn {
    width: 100%;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: var(--space-sm);
  }

  .filter-chip {
    flex-shrink: 0;
  }

  .role-selector {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: var(--space-xl);
  }

  .modal {
    width: 95%;
    padding: var(--space-xl);
  }

  .profile-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .job-card-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .container {
    padding: 0 var(--space-md);
  }

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

  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-xl)) 0 var(--space-2xl);
  }
}

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

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

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

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

/* ============================================
   Selection Styling
   ============================================ */
::selection {
  background: rgba(16, 185, 129, 0.15);
  color: var(--navy-900);
}

/* ============================================
   Dashboard Specific
   ============================================ */
.dashboard-header {
  padding: calc(80px + var(--space-2xl)) 0 var(--space-xl);
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
  border-bottom: 1px solid var(--gray-200);
}

.dashboard-tabs {
  display: flex;
  gap: var(--space-xs);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 4px;
  width: fit-content;
}

.dashboard-tab {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  transition: all var(--transition-base);
}

.dashboard-tab:hover {
  color: var(--white);
}

.dashboard-tab.active {
  background: var(--emerald-500);
  color: var(--white);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

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

.stat-card-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
}

.stat-card-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.stat-card-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: var(--space-xs);
}

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

/* ============================================
   Utility: Hidden
   ============================================ */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
