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

:root {
  /* Brand Colors - Maintained */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --secondary: #64748b;
  --accent: #06b6d4;
  --accent-hover: #0891b2;

  /* Enhanced Color System */
  --light-bg: #fafbfc;
  --dark-bg: #0a0e1a;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --card-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Text Colors */
  --text-light: #0f172a;
  --text-secondary-light: #475569;
  --text-muted-light: #64748b;
  --text-dark: #f8fafc;
  --text-secondary-dark: #cbd5e1;
  --text-muted-dark: #94a3b8;

  /* Background Colors */
  --card-bg-light: #ffffff;
  --card-bg-dark: #1e293b;
  --input-bg-light: #ffffff;
  --input-bg-dark: #334155;
  --surface-light: #f1f5f9;
  --surface-dark: #0f172a;

  /* Border Colors */
  --border-light: #e2e8f0;
  --border-dark: #475569;
  --border-focus: #4f46e5;

  /* Status Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #3b82f6;
  --info-light: #dbeafe;

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

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Theme System */
:root {
  --bg: var(--light-bg);
  --text: var(--text-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --card-bg: var(--card-bg-light);
  --input-bg: var(--input-bg-light);
  --surface: var(--surface-light);
  --border: var(--border-light);
}

[data-theme="dark"] {
  --bg: var(--dark-bg);
  --text: var(--text-dark);
  --text-secondary: var(--text-secondary-dark);
  --text-muted: var(--text-muted-dark);
  --card-bg: var(--card-bg-dark);
  --input-bg: var(--input-bg-dark);
  --surface: var(--surface-dark);
  --border: var(--border-dark);

  /* Viral Lock - Dark Mode */
  --viral-overlay-bg: rgba(17, 24, 39, 0.85);
  --viral-text: #ffffff;
  --viral-desc: #d1d5db;
  --viral-border: rgba(255, 255, 255, 0.1);
  --viral-input-bg: rgba(0, 0, 0, 0.3);
  --viral-input-text: #e5e7eb;
}

[data-theme="light"] {
  --bg: var(--light-bg);
  --text: var(--text-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --card-bg: var(--card-bg-light);
  --input-bg: var(--input-bg-light);
  --surface: var(--surface-light);
  --border: var(--border-light);

  /* Viral Lock - Light Mode */
  --viral-overlay-bg: rgba(255, 255, 255, 0.9);
  --viral-text: #1f2937;
  --viral-desc: #4b5563;
  --viral-border: rgba(0, 0, 0, 0.1);
  --viral-input-bg: rgba(0, 0, 0, 0.05);
  --viral-input-text: #374151;
}

/* ===================================== */
/* VIRAL LOCK UI - GLASSMORPHISM SYSTEM */
/* ===================================== */

.viral-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--viral-overlay-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: var(--space-xl);
  text-align: center;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.viral-locked {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.lock-icon-container {
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.lock-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--viral-text);
  margin: 0 0 var(--space-sm) 0;
  letter-spacing: -0.025em;
}

.lock-description {
  font-size: var(--text-base);
  color: var(--viral-desc);
  margin-bottom: var(--space-xl);
  max-width: 400px;
  line-height: 1.6;
}

.lock-status-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--viral-text);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.lock-progress-container {
  width: 100%;
  max-width: 320px;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  margin-bottom: var(--space-xl);
  overflow: hidden;
  position: relative;
}

.lock-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 9999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

.referral-link-box {
  display: flex;
  width: 100%;
  max-width: 380px;
  background: var(--viral-input-bg);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--viral-border);
  backdrop-filter: blur(4px);
}

.referral-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--viral-input-text);
  font-size: var(--text-sm);
  padding: 0 0.75rem;
  font-family: var(--font-mono);
}

.referral-input:focus {
  outline: none;
  box-shadow: none;
}

.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Mobile Optimizations for Viral Lock */
@media (max-width: 480px) {
  .viral-lock-overlay {
    padding: var(--space-lg);
  }

  .lock-icon-container {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
  }

  .lock-title {
    font-size: var(--text-xl);
  }

  .referral-link-box {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: transparent;
    border: none;
  }

  .referral-input {
    background: var(--viral-input-bg);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--viral-border);
    width: 100%;
    text-align: center;
  }

  .copy-btn {
    width: 100%;
    padding: 0.75rem;
  }
}

/* Force proper contrast for links */
a {
  color: var(--primary) !important;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--primary-hover) !important;
  opacity: 0.8;
}

/* Ensure text visibility */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Enhanced Base Styles */
* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text);
  line-height: var(--leading-normal);
  font-size: var(--text-base);
  font-weight: 400;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Enhanced Interactive Elements */
button,
input,
textarea,
select {
  font-family: inherit;
  transition: all var(--transition-normal);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-weight: 500;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

input,
textarea,
select {
  outline: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Material Icons Integration */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.material-icons.md-18 {
  font-size: 18px;
}

.material-icons.md-20 {
  font-size: 20px;
}

.material-icons.md-24 {
  font-size: 24px;
}

.material-icons.md-36 {
  font-size: 36px;
}

.material-icons.md-48 {
  font-size: 48px;
}

/* Enhanced Card System */
.content-card,
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.content-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}

.card-elevated {
  box-shadow: var(--card-shadow-lg);
}

.card-interactive {
  cursor: pointer;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: var(--leading-tight);
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: var(--space-xs) 0 0 0;
}

.card-body {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

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

/* Enhanced Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: all var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-input-icon .material-icons {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 20px;
}

.form-input-icon .form-input {
  padding-left: calc(var(--space-md) + 20px + var(--space-sm));
}

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

.form-help {
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-top: var(--space-xs);
}

/* Enhanced Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: var(--leading-tight);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--card-bg);
  border-color: var(--primary);
  color: var(--primary);
}

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

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

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--surface);
  color: var(--text);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-lg);
}

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

.btn-icon-sm {
  width: 32px;
  height: 32px;
}

.btn-icon-lg {
  width: 48px;
  height: 48px;
}

/* ===================================== */
/* PREVENT HORIZONTAL OVERFLOW - CRITICAL */
/* ===================================== */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

* {
  max-width: 100%;
}

/* ===================================== */
/* ENHANCED RESPONSIVE DESIGN SYSTEM */
/* ===================================== */

/* MOBILE FIRST - EXTRA SMALL (320px - 374px) */
@media (min-width: 320px) and (max-width: 374px) {
  :root {
    --text-xs: 0.65rem;
    --text-sm: 0.75rem;
    --text-base: 0.9rem;
    --text-lg: 1rem;
    --text-xl: 1.1rem;
    --text-2xl: 1.3rem;
    --text-3xl: 1.5rem;
    --text-4xl: 1.75rem;
    --text-5xl: 2rem;
  }

  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  body {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 0.5rem;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
  }

  main {
    padding: 0.5rem !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-title {
    font-size: 1.3rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .section-title {
    font-size: 1.2rem;
    word-break: break-word;
  }

  .section-subtitle {
    font-size: 0.8rem;
    word-break: break-word;
  }

  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    min-width: auto;
    width: 100%;
  }

  .btn-lg {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .feature-card,
  .card {
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
    overflow: hidden;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .feature-title {
    font-size: 0.95rem;
    word-break: break-word;
  }

  .feature-description {
    font-size: 0.8rem;
    word-break: break-word;
  }

  .modal {
    max-width: calc(100vw - 1rem);
    margin: 0.5rem auto;
  }

  .table-container {
    font-size: 0.65rem;
    width: 100%;
    overflow-x: auto;
  }

  table {
    min-width: 100%;
  }

  table thead th,
  table tbody td {
    padding: 0.4rem 0.5rem;
    font-size: 0.65rem;
  }

  .badge {
    padding: 0.25rem 0.4rem;
    font-size: 0.6rem;
  }

  .navbar {
    padding: 0.5rem 0.5rem;
    width: 100%;
    overflow: hidden;
  }

  .navbar-brand {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
  }

  .hero-cta {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  input,
  textarea,
  select,
  .form-input {
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
    width: 100%;
  }

  .sidebar {
    margin-top: 0.75rem;
    width: 100%;
  }

  h1 {
    word-break: break-word;
  }

  h2 {
    word-break: break-word;
  }

  h3 {
    word-break: break-word;
  }

  h4 {
    word-break: break-word;
  }

  h5 {
    word-break: break-word;
  }

  h6 {
    word-break: break-word;
  }

  p {
    word-break: break-word;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .navbar-nav {
    display: none;
  }
}

/* MOBILE - SMALL (375px - 480px) */
@media (min-width: 375px) and (max-width: 480px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 0.75rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  main {
    padding: 0.75rem !important;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.6rem;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    word-break: break-word;
  }

  .section-title {
    font-size: 1.35rem;
    word-break: break-word;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .feature-card,
  .card {
    padding: 0.9rem;
    width: 100%;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    width: 100%;
  }

  .hero-cta {
    width: 100%;
    font-size: 0.8rem;
  }

  .table-container {
    font-size: 0.7rem;
    width: 100%;
  }

  input,
  textarea,
  select {
    padding: 0.6rem 0.7rem;
    width: 100%;
  }

  .modal {
    max-width: calc(100vw - 1rem);
  }

  .navbar {
    padding: 0.6rem 0.75rem;
  }
}

/* MOBILE - STANDARD (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }

  main {
    padding: 1rem !important;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.75rem;
    word-break: break-word;
  }

  .section-title {
    font-size: 1.5rem;
    word-break: break-word;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    width: 100%;
  }

  .feature-card,
  .card {
    padding: 1rem;
    width: 100%;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
  }

  input,
  textarea,
  select {
    padding: 0.7rem 0.85rem;
    width: 100%;
  }

  .modal {
    max-width: calc(100vw - 1.5rem);
  }
}

/* TABLET - PORTRAIT (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 1.25rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  main {
    padding: 1.25rem !important;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
    word-break: break-word;
  }

  .section-title {
    font-size: 1.75rem;
    word-break: break-word;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card,
  .card {
    padding: 1.25rem;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
  }

  .modal {
    max-width: calc(100vw - 2rem);
  }

  input,
  textarea,
  select {
    padding: 0.7rem 0.9rem;
  }

  .navbar {
    padding: 0.75rem 1rem;
  }
}


/* TABLET - LANDSCAPE (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 1.5rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  main {
    padding: 1.5rem !important;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.75rem;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 2rem;
    word-break: break-word;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

  .feature-card,
  .card {
    padding: 1.5rem;
  }

  .feature-icon {
    width: 52px;
    height: 52px;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .modal {
    max-width: 550px;
  }

  input,
  textarea,
  select {
    padding: 0.75rem 1rem;
  }
}

/* DESKTOP - SMALL (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 2rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
  }

  main {
    padding: 2.5rem 1rem !important;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 3.25rem;
    word-break: break-word;
  }

  .section-title {
    font-size: 2.25rem;
    word-break: break-word;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .content-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .feature-card,
  .card {
    padding: 2rem;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
  }

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

  .modal {
    max-width: 600px;
  }

  input,
  textarea,
  select {
    padding: 0.75rem 1.125rem;
  }
}

/* DESKTOP - STANDARD (1281px - 1536px) */
@media (min-width: 1281px) and (max-width: 1536px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 2.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
  }

  main {
    padding: 3rem 1rem !important;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 3.5rem;
    word-break: break-word;
  }

  .section-title {
    font-size: 2.5rem;
    word-break: break-word;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }

  .content-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.25rem;
  }

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

  .feature-card,
  .card {
    padding: 2.25rem;
  }

  .feature-icon {
    width: 64px;
    height: 64px;
  }

  .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  input,
  textarea,
  select {
    padding: 0.875rem 1.25rem;
  }
}

/* DESKTOP - LARGE (1537px+) */
@media (min-width: 1537px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 3rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
  }

  main {
    padding: 3.5rem 1rem !important;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 4rem;
    word-break: break-word;
  }

  .section-title {
    font-size: 3rem;
    word-break: break-word;
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

  .content-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
  }

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

  .grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }

  .grid-cols-12 {
    grid-template-columns: repeat(12, 1fr);
  }

  .feature-card,
  .card {
    padding: 2.5rem;
  }

  .feature-icon {
    width: 72px;
    height: 72px;
  }

  .btn {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
  }

  input,
  textarea,
  select {
    padding: 1rem 1.375rem;
  }
}

/* TOUCH DEVICE OPTIMIZATIONS */
@media (hover: none) and (pointer: coarse) {

  /* Larger tap targets for touch */
  .btn,
  button,
  a,
  input,
  textarea,
  select {
    min-height: 48px;
    min-width: 48px;
  }

  /* Remove hover effects on touch devices */
  .btn:hover {
    transform: none;
  }

  .card:hover {
    transform: none;
    box-shadow: var(--card-shadow);
  }

  .feature-card:hover {
    transform: none;
    box-shadow: var(--card-shadow);
  }

  /* Add active state instead */
  .btn:active {
    opacity: 0.8;
  }

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

  .feature-card:active {
    box-shadow: var(--card-shadow-lg);
  }
}

/* LANDSCAPE ORIENTATION */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    padding: 2rem 0;
  }

  .hero-title {
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    margin-bottom: 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .navbar {
    padding: 0.75rem 0;
  }
}

/* PORTRAIT ORIENTATION */
@media (orientation: portrait) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-cta {
    width: 100%;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .feature-icon,
  .material-icons {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-fadeIn,
  .animate-fadeInUp,
  .animate-fadeInDown,
  .animate-slideInLeft,
  .animate-slideInRight,
  .animate-scaleIn,
  .animate-pulse,
  .animate-bounce {
    animation: none;
  }
}

/* Dark Mode Media Query */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--dark-bg);
    --text: var(--text-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-muted: var(--text-muted-dark);
    --card-bg: var(--card-bg-dark);
    --input-bg: var(--input-bg-dark);
    --surface: var(--surface-dark);
    --border: var(--border-dark);
  }
}

/* Print Styles */
@media print {

  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .navbar,
  .sidebar,
  .btn,
  .modal-overlay,
  .loading-overlay {
    display: none !important;
  }

  .container {
    max-width: none !important;
    padding: 0 !important;
  }

  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .card {
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  a {
    text-decoration: underline;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }
}

/* Legacy Animation Support */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus Management */
.focus-trap {
  position: relative;
}

.focus-trap:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Accessibility Improvements */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border: #000000;
    --card-shadow: 0 0 0 1px #000000;
    --card-shadow-hover: 0 0 0 2px #000000;
  }

  .btn {
    border: 2px solid currentColor;
  }

  .card {
    border: 2px solid var(--border);
  }
}

/* Performance Optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

.content-visibility-auto {
  content-visibility: auto;
  contain-intrinsic-size: 200px;
}

/* Component State Classes */
.is-loading {
  pointer-events: none;
  opacity: 0.6;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.is-active {
  background-color: var(--primary);
  color: white;
}

.is-selected {
  background-color: rgba(79, 70, 229, 0.1);
  border-color: var(--primary);
}

.is-error {
  border-color: var(--danger);
  color: var(--danger);
}

.is-success {
  border-color: var(--success);
  color: var(--success);
}

.is-warning {
  border-color: var(--warning);
  color: var(--warning);
}

/* Enhanced Layout System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

.container-sm {
  max-width: 640px;
}

.container-md {
  max-width: 768px;
}

.container-lg {
  max-width: 1024px;
}

.container-xl {
  max-width: 1280px;
}

.container-fluid {
  max-width: 100%;
  padding: 0 var(--space-md);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.grid-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

.grid-cols-12 {
  grid-template-columns: repeat(12, 1fr);
}

.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

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

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

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

.justify-end {
  justify-content: flex-end;
}

.gap-xs {
  gap: var(--space-xs);
}

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

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

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

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

.gap-2xl {
  gap: var(--space-2xl);
}

/* Enhanced Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.content-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.content-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--space-2xl);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto var(--space-lg);
  font-size: 28px;
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.feature-description {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Enhanced Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
}

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

.badge-secondary {
  background-color: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

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

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

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

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

.premium-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: linear-gradient(135deg, var(--warning) 0%, #ea580c 100%);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.featured-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Enhanced Comments Section */
.comments-section {
  margin-top: var(--space-2xl);
  background: var(--card-bg);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

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

.comments-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comment {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: var(--space-md);
}

.comment:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.comment-author {
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-sm);
}

.comment-date {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.comment-text {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.comment-action {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.comment-action:hover {
  color: var(--primary);
}

/* Enhanced Action Buttons */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--surface);
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.share-btn:hover {
  background-color: var(--card-bg);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}



/* Enhanced Focus States */
input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.focus-ring:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Enhanced Selection */
::selection {
  background-color: var(--primary);
  color: white;
}

::-moz-selection {
  background-color: var(--primary);
  color: white;
}



/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

::-webkit-scrollbar-corner {
  background: var(--bg);
}

/* Enhanced Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text);
  margin: 0 0 var(--space-md) 0;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 900;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 700;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 600;
}

p {
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0 0 var(--space-md) 0;
}

.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-base {
  font-size: var(--text-base);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: var(--text-3xl);
}

.text-4xl {
  font-size: var(--text-4xl);
}

.text-5xl {
  font-size: var(--text-5xl);
}

.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-black {
  font-weight: 900;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--text-secondary);
}

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

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-warning {
  color: var(--warning);
}

.text-info {
  color: var(--info);
}

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

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

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

.leading-tight {
  line-height: var(--leading-tight);
}

.leading-snug {
  line-height: var(--leading-snug);
}

.leading-normal {
  line-height: var(--leading-normal);
}

.leading-relaxed {
  line-height: var(--leading-relaxed);
}

.leading-loose {
  line-height: var(--leading-loose);
}

/* Enhanced Navigation */
.navbar {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.navbar-brand {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--surface);
}

.nav-link.active {
  color: var(--primary);
  background-color: rgba(79, 70, 229, 0.1);
}

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

/* Enhanced Hero Sections */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: var(--space-lg);
  line-height: var(--leading-tight);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2xl);
  opacity: 0.9;
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  font-size: var(--text-lg);
}

.hero-cta-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-cta-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: white;
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-4px);
}

/* Section Styles */
.section {
  padding: var(--space-3xl) 0;
}

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

.section-lg {
  padding: calc(var(--space-3xl) * 1.5) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 900;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Enhanced Alert System */
.alert {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.alert-icon {
  flex-shrink: 0;
  font-size: 20px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
}

.alert-message {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.alert-success {
  background-color: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}

.alert-success::before {
  background-color: var(--success);
}

.alert-danger {
  background-color: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger);
}

.alert-danger::before {
  background-color: var(--danger);
}

.alert-warning {
  background-color: var(--warning-light);
  border-color: var(--warning);
  color: var(--warning);
}

.alert-warning::before {
  background-color: var(--warning);
}

.alert-info {
  background-color: var(--info-light);
  border-color: var(--info);
  color: var(--info);
}

.alert-info::before {
  background-color: var(--info);
}

.alert-dismissible {
  padding-right: calc(var(--space-lg) + 32px);
}

.alert-dismiss {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.alert-dismiss:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Enhanced Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.loading-content {
  background-color: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--card-shadow-lg);
  border: 1px solid var(--border);
  min-width: 200px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-md);
}

.loading-text {
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

.loading-subtext {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: var(--space-xs) 0 0 0;
}

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

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-sm);
}

.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: var(--space-md);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
  width: 100%;
}

/* Enhanced Table Styles */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card-bg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

table thead {
  background-color: var(--surface);
}

table thead th {
  padding: var(--space-lg);
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table tbody tr {
  transition: background-color var(--transition-fast);
}

table tbody tr:hover {
  background-color: var(--surface);
}

table tbody tr:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

table tbody td {
  padding: var(--space-lg);
  color: var(--text-secondary);
  vertical-align: top;
}

.table-cell-primary {
  font-weight: 500;
  color: var(--text);
}

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

.table-cell-right {
  text-align: right;
}

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

/* Enhanced Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: var(--space-lg);
}

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

.modal {
  background-color: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow-lg);
  border: 1px solid var(--border);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-normal);
}

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

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

.modal-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--surface);
  color: var(--text);
}

.modal-body {
  padding: var(--space-2xl);
}

.modal-footer {
  padding: var(--space-lg) var(--space-2xl) var(--space-2xl);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* Enhanced Code Blocks */
code {
  background-color: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-weight: 500;
}

pre {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  position: relative;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.code-language {
  font-weight: 500;
}

.code-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: var(--text-xs);
}

.code-copy:hover {
  background-color: var(--surface);
  color: var(--text);
}

.code-block {
  position: relative;
  margin: var(--space-lg) 0;
}

.code-block pre {
  margin: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Enhanced Blockquote */
blockquote {
  border-left: 4px solid var(--primary);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  background-color: var(--surface);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}

blockquote p {
  color: var(--text-secondary);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin: 0;
  padding-left: var(--space-lg);
}

blockquote cite {
  display: block;
  margin-top: var(--space-md);
  color: var(--text-muted);
  font-style: normal;
  font-size: var(--text-sm);
  padding-left: var(--space-lg);
}

blockquote cite::before {
  content: '— ';
}

/* Enhanced Horizontal Rule */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  margin: var(--space-2xl) 0;
}

.hr-text {
  position: relative;
  text-align: center;
  margin: var(--space-2xl) 0;
}

.hr-text::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.hr-text span {
  background-color: var(--bg);
  padding: 0 var(--space-lg);
  color: var(--text-muted);
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
}

/* Enhanced Sidebar */
.sidebar {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  height: fit-content;
  position: sticky;
  top: calc(var(--space-2xl) + 80px);
}

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

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-item {
  margin-bottom: var(--space-sm);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
}

.sidebar-link:hover {
  background-color: var(--surface);
  color: var(--primary);
}

.sidebar-link.active {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-weight: 500;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border);
  margin: var(--space-lg) 0;
}

/* Enhanced Main Content */
.main-content {
  flex: 1;
  min-height: 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.content-with-sidebar {
  grid-template-columns: 1fr 300px;
}

.article-content {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.article-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.article-title {
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.article-excerpt {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.article-body {
  line-height: var(--leading-relaxed);
}

.article-body>*+* {
  margin-top: var(--space-lg);
}

.article-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.article-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

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

/* Enhanced Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    transform: translate3d(0, -8px, 0);
  }

  70% {
    transform: translate3d(0, -4px, 0);
  }

  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Animation Classes */
.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInDown {
  animation: fadeInDown 0.6s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out;
}

.animate-scaleIn {
  animation: scaleIn 0.4s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Stagger Animation */
.stagger-children>* {
  animation: fadeInUp 0.6s ease-out;
}

.stagger-children>*:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
  animation-delay: 0.6s;
}

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

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
}

.pointer-events-none {
  pointer-events: none;
}

.select-none {
  user-select: none;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Spacing Utilities */
.m-0 {
  margin: 0;
}

.mt-0 {
  margin-top: 0;
}

.mr-0 {
  margin-right: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.ml-0 {
  margin-left: 0;
}

.p-0 {
  padding: 0;
}

.pt-0 {
  padding-top: 0;
}

.pr-0 {
  padding-right: 0;
}

.pb-0 {
  padding-bottom: 0;
}

.pl-0 {
  padding-left: 0;
}

.m-auto {
  margin: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-auto {
  margin-top: auto;
  margin-bottom: auto;
}

/* Border Radius Utilities */
.rounded-none {
  border-radius: 0;
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-2xl {
  border-radius: var(--radius-2xl);
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadow Utilities */
.shadow-none {
  box-shadow: none;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

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

.shadow-lg {
  box-shadow: var(--card-shadow-lg);
}

/* Position Utilities */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

/* Width & Height Utilities */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

/* Overflow Utilities */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}



/* Enhanced Form States */
form.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

form.is-loading input,
form.is-loading button,
form.is-loading select,
form.is-loading textarea {
  cursor: not-allowed;
}

.btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

/* Form Validation States */
.form-input.is-valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-feedback {
  font-size: var(--text-xs);
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.form-feedback.is-valid {
  color: var(--success);
}

.form-feedback.is-invalid {
  color: var(--danger);
}

/* Enhanced Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text);
  color: var(--bg);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
  margin-bottom: var(--space-xs);
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text);
}

.tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
}

/* Enhanced Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow-lg);
  padding: var(--space-sm) 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-normal);
  z-index: 1000;
}

.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: var(--surface);
  color: var(--text);
}

.dropdown-item.is-active {
  background-color: var(--primary);
  color: white;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border);
  margin: var(--space-sm) 0;
}

/* Team Leadership Styles */
.team-image-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
}

.team-member-card:hover .team-image-container {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.4);
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member-card:hover .team-image {
  transform: scale(1.1);
}

.team-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.team-handles {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-handle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.social-platform {
  font-weight: 600;
  color: var(--text);
}

.social-handle a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-handle a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Final Cleanup */
* {
  box-sizing: border-box;
}

*:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===================================== */
/* BUTTON & INPUT RESPONSIVE ENHANCEMENTS */
/* ===================================== */

/* Button Group Responsiveness */
.button-group {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .button-group {
    flex-direction: column;
  }

  .button-group .btn {
    width: 100%;
  }

  .team-image-container {
    width: 100px;
    height: 100px;
  }

  .team-placeholder {
    font-size: 1.5rem;
  }

  .team-social {
    gap: 0.75rem;
  }

  .team-handles {
    gap: 0.375rem;
  }

  .social-handle {
    font-size: 0.8125rem;
  }
}

/* Input Field Responsiveness */
.form-group {
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .form-group {
    margin-bottom: 1.25rem;
  }

  input,
  textarea,
  select {
    font-size: 1rem;
    padding: 0.75rem;
    min-height: 44px;
  }
}

/* Text Area Responsiveness */
textarea {
  resize: vertical;
  min-height: 100px;
}

@media (max-width: 640px) {
  textarea {
    min-height: 80px;
  }
}

/* Select Dropdown Responsiveness */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234f46e5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  select {
    background-position: right 0.5rem center;
    padding-right: 2rem;
  }
}

/* ===================================== */
/* NAVIGATION RESPONSIVE ENHANCEMENTS */
/* ===================================== */

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .navbar-brand {
    width: 100%;
  }

  .navbar-nav {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.75rem;
    border-radius: 0.5rem;
  }

  .navbar-actions {
    width: 100%;
    flex-direction: row;
    gap: 0.5rem;
  }
}

/* ===================================== */
/* GRID RESPONSIVE ENHANCEMENTS */
/* ===================================== */

/* Auto-fit Grid for Products */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .grid-auto-fit {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .grid-auto-fit {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .grid-auto-fit {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1281px) {
  .grid-auto-fit {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================== */
/* SIDEBAR & LAYOUT RESPONSIVE */
/* ===================================== */

.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr 300px;
  }

  .sidebar {
    position: sticky;
    top: 80px;
  }
}

@media (min-width: 1281px) {
  .main-content {
    grid-template-columns: 1fr 340px;
  }
}

/* ===================================== */
/* TYPOGRAPHY RESPONSIVE */
/* ===================================== */

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.25rem, 4vw, 2rem);
  }

  h3 {
    font-size: clamp(1.1rem, 3vw, 1.75rem);
  }

  h4 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
  }

  h5 {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
  }

  h6 {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  }

  p {
    font-size: 0.9rem;
  }

  .text-sm {
    font-size: 0.8rem;
  }

  .text-xs {
    font-size: 0.7rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  h1 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  }

  h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
  }
}

@media (min-width: 1281px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 2rem;
  }
}

/* ===================================== */
/* SPACING RESPONSIVE */
/* ===================================== */

@media (max-width: 640px) {
  .section {
    padding: 2rem 0;
  }

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

  .section-lg {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .content-card {
    padding: 1rem;
  }

  .card {
    padding: 1rem;
  }
}

@media (min-width: 1281px) {
  .section {
    padding: 4rem 0;
  }

  .section-lg {
    padding: 5rem 0;
  }

  .section-header {
    margin-bottom: 3.5rem;
  }

  .content-card {
    padding: 2.5rem;
  }

  .card {
    padding: 2.5rem;
  }
}

/* ===================================== */
/* MODAL & DIALOG RESPONSIVE */
/* ===================================== */

.modal {
  max-width: 90vw;
  max-height: 90vh;
}

@media (max-width: 640px) {
  .modal {
    max-width: 95vw;
    margin: 0.5rem;
  }

  .modal-header {
    padding: 1.25rem;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .modal-footer {
    padding: 1rem;
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .modal {
    max-width: 500px;
  }
}

@media (min-width: 1025px) {
  .modal {
    max-width: 600px;
  }
}

/* ===================================== */
/* TABLE RESPONSIVE */
/* ===================================== */

@media (max-width: 768px) {
  .table-container {
    font-size: 0.85rem;
  }

  table thead th,
  table tbody td {
    padding: 0.75rem 0.5rem;
  }

  table {
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .table-container {
    font-size: 0.75rem;
    overflow-x: auto;
  }

  table thead th,
  table tbody td {
    padding: 0.5rem 0.375rem;
  }

  .table-cell-center,
  .table-cell-right {
    text-align: left;
  }

  .table-actions {
    flex-direction: column;
    gap: 0.25rem;
  }

  .table-actions .btn {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
}

/* ===================================== */
/* CARD & CONTENT RESPONSIVE */
/* ===================================== */

@media (max-width: 640px) {
  .content-card {
    margin-bottom: 1rem;
  }

  .card-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .card-footer .btn {
    width: 100%;
  }
}

/* ===================================== */
/* FEATURE CARDS RESPONSIVE */
/* ===================================== */

@media (max-width: 480px) {
  .feature-card {
    text-align: center;
  }

  .feature-icon {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===================================== */
/* BADGE & STATUS RESPONSIVE */
/* ===================================== */

@media (max-width: 480px) {
  .badge {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
  }

  .badge-lg {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* ===================================== */
/* ANIMATION RESPONSIVE */
/* ===================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================== */
/* PRINT RESPONSIVE */
/* ===================================== */

@media print {
  body {
    background: white;
    color: black;
  }

  .navbar,
  .sidebar,
  .modal-overlay,
  .loading-overlay {
    display: none !important;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card,
  .content-card {
    page-break-inside: avoid;
    border: 1px solid #ccc;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  a {
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
  }

  .btn,
  button {
    display: none !important;
  }
}