:root {
  /* Primary Colors - Set by config.js */
  --color-primary: #1DB954;
  --color-primary-dark: #169c46;

  /* Surface Colors - Set by config.js */
  --color-surface: #FFFFFF;

  /* Neutral Colors */
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #d4d4d4;
  --color-neutral-400: #a3a3a3;
  --color-neutral-500: #737373;
  --color-neutral-600: #525252;
  --color-neutral-700: #404040;
  --color-neutral-800: #262626;
  --color-neutral-900: #171717;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

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

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e5e5e5;
  border-top-color: var(--color-primary, #1DB954);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.loader-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #737373;
  font-weight: 500;
}

#page-content {
  visibility: hidden;
}

#page-content.loaded {
  visibility: visible;
  animation: fadeIn 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-neutral-900);
  background-color: var(--color-neutral-50);
}

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

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

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.5s ease-out;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-neutral-700);
  border: 2px solid var(--color-neutral-200);
}

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

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-neutral-100);
  transition: all var(--transition-base);
}

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

.card-feature {
  position: relative;
  overflow: hidden;
}

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

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

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-neutral-700);
  margin-bottom: var(--space-2);
  letter-spacing: 0.025em;
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-neutral-900);
  background-color: var(--color-surface);
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

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

.form-hint {
  display: block;
  font-size: 0.875rem;
  color: var(--color-neutral-500);
  margin-top: var(--space-2);
}

.form-error {
  display: block;
  font-size: 0.875rem;
  color: var(--color-error);
  margin-top: var(--space-2);
}

/* Custom Checkbox */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-neutral-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-base);
  background: var(--color-surface);
  flex-shrink: 0;
}

input[type="checkbox"]:hover {
  border-color: var(--color-primary);
}

input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.alert {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  animation: fadeIn 0.3s ease-out;
}

.alert-success {
  background-color: color-mix(in srgb, var(--color-primary) 10%, white);
  border-color: color-mix(in srgb, var(--color-primary) 40%, white);
  color: color-mix(in srgb, var(--color-primary) 80%, black);
}

.alert-error {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.alert-info {
  background-color: color-mix(in srgb, var(--color-info) 10%, white);
  border-color: color-mix(in srgb, var(--color-info) 40%, white);
  color: color-mix(in srgb, var(--color-info) 80%, black);
}

.alert-warning {
  background-color: color-mix(in srgb, var(--color-warning) 10%, white);
  border-color: color-mix(in srgb, var(--color-warning) 50%, white);
  color: color-mix(in srgb, var(--color-warning) 80%, black);
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert-content {
  flex: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-error {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-info {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-neutral {
  background-color: var(--color-neutral-100);
  color: var(--color-neutral-700);
}

.navbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-neutral-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-neutral-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

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

.nav-link {
  color: var(--color-neutral-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-base);
}

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

.hero {
  position: relative;
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--color-neutral-50) 0%, var(--color-surface) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--color-primary) 5%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  border: 1px solid var(--color-neutral-100);
  transition: all var(--transition-base);
}

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

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-neutral-900);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-neutral-700);
  transition: color 0.2s ease;
}

.mobile-menu-toggle:hover {
  color: var(--color-primary);
}

.mobile-menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-neutral-100);
}

.mobile-nav-header .mobile-nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-neutral-900);
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-neutral-500);
  transition: color 0.2s ease;
  border-radius: var(--radius-md);
}

.mobile-nav-close:hover {
  color: var(--color-neutral-900);
}

.mobile-nav-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav-links {
  list-style: none;
  padding: 0.75rem 0;
  margin: 0;
  flex: 1;
}

.mobile-nav-links li {
  margin: 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  color: var(--color-neutral-700);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
  background-color: var(--color-neutral-50);
  color: var(--color-primary);
}

.mobile-nav-links a svg,
.mobile-nav-links a i {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
  opacity: 0.8;
  flex-shrink: 0;
}

.mobile-nav-links .nav-section-title {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.mobile-nav-cta {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--color-neutral-100);
  margin-top: auto;
}

.mobile-nav-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Mobile nav brand/logo area */
.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.mobile-nav-brand img {
  border-radius: var(--radius-sm);
}

.mobile-nav-brand svg,
.mobile-nav-brand i {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    display: block;
  }

  .navbar-nav {
    display: none;
  }

  /* Navbar brand text on mobile */
  .navbar-brand {
    font-size: 0.9375rem !important;
  }

  .navbar-brand span {
    font-size: 0.9375rem !important;
  }

  .navbar-brand img,
  .navbar-brand svg,
  .navbar-brand i {
    width: 24px !important;
    height: 24px !important;
  }

  .hero {
    padding: var(--space-12) 0;
  }

  /* Hero text responsive sizing */
  .hero-content h1,
  .hero-content #heroTitle {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .hero-content p,
  .hero-content #heroDescription {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Hero badge on mobile */
  .hero-content > div:first-child span {
    font-size: 0.75rem !important;
  }

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

  /* Trust indicators on mobile */
  .trust-indicators {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .trust-indicators > div {
    justify-content: flex-start !important;
    padding: 0.5rem;
  }

  .trust-indicators span {
    font-size: 0.75rem !important;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .hero-content h1,
  .hero-content #heroTitle {
    font-size: 1.75rem !important;
  }

  .hero-content p,
  .hero-content #heroDescription {
    font-size: 0.9375rem !important;
  }
}

/* Small mobile devices */
@media (max-width: 375px) {
  .mobile-nav-content {
    width: 100%;
    max-width: 100%;
  }

  .mobile-nav-title {
    font-size: 0.9375rem;
  }

  .mobile-nav-links a {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .mobile-nav-links .nav-section-title {
    padding: 0.875rem 1rem 0.375rem;
    font-size: 0.625rem;
  }

  .mobile-nav-cta {
    padding: 0.875rem 1rem 1.25rem;
  }

  .mobile-nav-cta .btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  .mobile-nav-brand {
    gap: 0.5rem;
  }

  .mobile-nav-brand svg,
  .mobile-nav-brand i {
    width: 1.25rem;
    height: 1.25rem;
  }

  .mobile-nav-title {
    font-size: 0.875rem;
  }

  .mobile-nav-links a {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    gap: 0.75rem;
  }

  .mobile-nav-links a svg,
  .mobile-nav-links a i {
    width: 1.25rem;
    height: 1.25rem;
  }

  .mobile-nav-cta .btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

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

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

.package-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: white;
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  min-height: 80px;
}

.package-option:hover {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 5%, white);
}

.package-option.selected {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

/* Custom sidebar navigation */
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1100;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.9rem;
  background: #10141b;
  color: #eef2f7;
  box-shadow: 10px 0 35px rgba(15, 23, 42, 0.12);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem 1.15rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.sidebar-brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  color: #10141b;
  background: linear-gradient(135deg, #7cf29a, #1db954);
}

.sidebar-brand-mark svg,
.sidebar-icon svg,
.sidebar-home svg,
.sidebar-mobile-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

.sidebar-rule {
  height: 1px;
  margin: 0 0.8rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-label {
  margin: 0 0.8rem 0.55rem;
  color: #8892a3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.sidebar-link,
.sidebar-home {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.7rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  color: #b7c0ce;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sidebar-link:hover,
.sidebar-link.is-active,
.sidebar-home:hover {
  color: #fff;
  background: rgba(29, 185, 84, 0.16);
  border-color: rgba(124, 242, 154, 0.22);
  transform: translateX(2px);
}

.sidebar-link.is-active {
  box-shadow: inset 3px 0 0 #49dc78;
}

.sidebar-icon {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.55rem;
  color: #73e993;
  background: rgba(29, 185, 84, 0.12);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-home {
  color: #9aa5b5;
}

.sidebar-mobile-toggle,
.sidebar-overlay {
  display: none;
}

#page-content {
  min-height: 100vh;
  margin-left: 248px;
}

@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }

  #page-content {
    margin-left: 0;
  }

  .sidebar-mobile-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1050;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.8rem;
    color: #10141b;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: block;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* Desktop sidebar refinement */
@media (min-width: 769px) {
  .app-sidebar {
    width: 286px;
    padding: 1.5rem 1.1rem;
    background:
      radial-gradient(circle at 15% 0%, rgba(73, 220, 120, 0.18), transparent 32%),
      linear-gradient(180deg, #111823 0%, #0b1017 100%);
    box-shadow: 14px 0 42px rgba(9, 15, 24, 0.2);
  }

  #page-content {
    margin-left: 286px;
  }

  .sidebar-brand {
    min-height: 3rem;
    padding: 0.8rem 0.9rem 1.35rem;
    font-size: 1.18rem;
  }

  .sidebar-brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
    box-shadow: 0 8px 22px rgba(29, 185, 84, 0.25);
  }

  .sidebar-label {
    margin-top: 0.4rem;
    font-size: 0.72rem;
  }

  .sidebar-nav {
    gap: 0.55rem;
  }

  .sidebar-link,
  .sidebar-home {
    min-height: 3.15rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    font-size: 1rem;
  }

  .sidebar-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
  }

  .sidebar-link:hover,
  .sidebar-link.is-active,
  .sidebar-home:hover {
    background: linear-gradient(90deg, rgba(29, 185, 84, 0.24), rgba(29, 185, 84, 0.08));
    border-color: rgba(124, 242, 154, 0.3);
  }

  .sidebar-link.is-active {
    box-shadow: inset 4px 0 0 #49dc78, 0 8px 24px rgba(29, 185, 84, 0.08);
  }
}

@media (max-width: 768px) {
  #page-content {
    margin-left: 0;
  }
}
