/**
 * META.js Customizer - Main Stylesheet
 * 
 * Modern, accessible, and maintainable styles following:
 * - BEM methodology for consistent naming
 * - CSS Custom Properties for theming
 * - Modular architecture with component separation
 * - Glassmorphism design with backdrop blur effects
 * - Mobile-first responsive design
 * - WCAG compliance for accessibility
 * 
 * @author xixu-me
 * @license GPL-3.0
 */

/* ==========================================================================
   CSS Custom Properties (Design System)
   ========================================================================== */

/* Design tokens for consistent theming */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --secondary-hover: #475569;
  --success-color: #059669;
  --danger-color: #dc2626;
  --danger-hover: #b91c1c;

  /* Light theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --border-hover: #475569;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3),
    0 4px 6px -4px rgb(0 0 0 / 0.3);
}

[data-theme="dark"] body {
  background: radial-gradient(
      ellipse at top left,
      rgba(59, 130, 246, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at top right,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom left,
      rgba(34, 197, 94, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom right,
      rgba(239, 68, 68, 0.15) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="dark"] body::before {
  background: radial-gradient(
      circle at 20% 80%,
      rgba(59, 130, 246, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(168, 85, 247, 0.2) 0%,
      transparent 50%
    );
}

[data-theme="dark"] .card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] #theme-toggle {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] #theme-toggle:hover {
  background: rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(
      ellipse at top left,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at top right,
      rgba(255, 105, 180, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom left,
      rgba(255, 165, 0, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom right,
      rgba(0, 255, 255, 0.3) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  transition: all 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* Animated background orbs for enhanced glass effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 105, 180, 0.4) 0%,
      transparent 50%
    );
  animation: float 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(30px) rotate(240deg);
  }
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

#theme-toggle {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

#theme-toggle:hover {
  transform: scale(1.08) rotate(15deg);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.3) 100%
  );
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.15);
}

#theme-toggle:active {
  transform: scale(1.05) rotate(0deg);
  transition: all 0.1s ease;
}

#theme-toggle:hover::after {
  left: 150%;
}

#theme-toggle::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 20%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.5) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.75s ease-out;
  border-radius: 50%;
}

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

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.header h1 i {
  color: var(--primary-color);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.subtitle a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.15);
}

.card-header {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.card-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.card-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header h2 i {
  color: var(--primary-color);
}

.card-content {
  padding: 1.5rem;
}

.output-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  min-width: 120px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
}

/* Enhanced liquid shine effect */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.6s ease-out;
  z-index: 1;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: inherit;
  filter: blur(0.5px);
  z-index: -1;
}

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

.btn:active {
  transform: translateY(1px) scale(0.98);
  transition: all 0.1s ease;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.9) 0%,
    rgba(29, 78, 216, 0.8) 50%,
    rgba(37, 99, 235, 0.9) 100%
  );
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: white;
  box-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(29, 78, 216, 0.95) 0%,
    rgba(30, 64, 175, 0.9) 50%,
    rgba(29, 78, 216, 0.95) 100%
  );
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 45px 0 rgba(37, 99, 235, 0.5),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.15) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.12),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.15);
}

.btn-success {
  background: linear-gradient(
    135deg,
    var(--success-color) 0%,
    #047857 100%
  ) !important;
  color: white !important;
}

/* Disabled button styles */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  background: rgba(156, 163, 175, 0.3) !important;
  color: rgba(156, 163, 175, 0.7) !important;
  border: 1px solid rgba(156, 163, 175, 0.2) !important;
  box-shadow: none !important;
  pointer-events: none;
}

.btn:disabled::before {
  display: none;
}

.btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Specific disabled styles for primary buttons */
.btn-primary:disabled {
  background: rgba(156, 163, 175, 0.3) !important;
  color: rgba(156, 163, 175, 0.7) !important;
  border-color: rgba(156, 163, 175, 0.2) !important;
}

/* Specific disabled styles for secondary buttons */
.btn-secondary:disabled {
  background: rgba(156, 163, 175, 0.15) !important;
  color: rgba(156, 163, 175, 0.6) !important;
  border-color: rgba(156, 163, 175, 0.2) !important;
}

/* Dark theme disabled button styles */
[data-theme="dark"] .btn:disabled {
  background: rgba(75, 85, 99, 0.3) !important;
  color: rgba(107, 114, 128, 0.7) !important;
  border-color: rgba(75, 85, 99, 0.3) !important;
}

[data-theme="dark"] .btn-primary:disabled {
  background: rgba(75, 85, 99, 0.3) !important;
  color: rgba(107, 114, 128, 0.7) !important;
  border-color: rgba(75, 85, 99, 0.3) !important;
}

[data-theme="dark"] .btn-secondary:disabled {
  background: rgba(75, 85, 99, 0.2) !important;
  color: rgba(107, 114, 128, 0.6) !important;
  border-color: rgba(75, 85, 99, 0.3) !important;
}

/* Footer */
.footer {
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shine 3s infinite;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color-hover);
}

.footer i {
  font-size: 0.8rem;
}

/* Info Banner Styles */
.info-banner {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(168, 85, 247, 0.1) 100%
  );
  border: 2px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 2rem;
}

.info-banner .card-header {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2) 0%,
    rgba(168, 85, 247, 0.2) 100%
  );
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.info-banner .card-header h2 {
  color: var(--primary-color);
  font-weight: 600;
}

.info-content {
  line-height: 1.6;
}

.info-content p {
  margin-bottom: 1rem;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.info-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.info-content li {
  margin-bottom: 0.5rem;
}

.info-content code {
  background: rgba(59, 130, 246, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875em;
  color: var(--primary-color);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.info-content a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

[data-theme="dark"] .info-banner {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(168, 85, 247, 0.15) 100%
  );
  border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .info-banner .card-header {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.25) 0%,
    rgba(168, 85, 247, 0.25) 100%
  );
  border-bottom-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .info-content code {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

/* Additional styles for optimized info banner content */
.info-content h3 {
  margin: 1.5rem 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-content h3 i {
  color: var(--primary-color);
  font-size: 1rem;
}

.info-content .example {
  display: inline-block;
  margin-left: 0.5rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9em;
}

/* Responsive adjustments for info banner */
@media (max-width: 768px) {
  .info-content ul {
    padding-left: 1.5rem;
  }

  .info-content code {
    font-size: 0.8em;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
    padding-top: 3rem;
  }

  .header h1 {
    font-size: 2rem;
  }

  .btn {
    min-width: 100px;
    padding: 10px 20px;
  }

  #theme-toggle {
    width: 45px;
    height: 45px;
  }
}

/* Scrollbar styling */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.search-results::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Animation for theme transition */
* {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.services-controls {
  margin-bottom: 1.5rem;
}

.search-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .search-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

#search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

#search-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

#search-input::placeholder {
  color: var(--text-muted);
}

.services-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.services-count i {
  color: var(--success-color);
}

.search-results {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin-top: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 10;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.search-results.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

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

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

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

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.search-result-item:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

#selected-services {
  min-height: 120px;
}

.no-services {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.no-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.no-services i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.no-services p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.no-services small {
  font-size: 0.9rem;
}

.selected-service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.selected-service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.5s ease;
}

.selected-service-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.selected-service-item:hover::before {
  left: 100%;
}

.selected-service-item .service-name {
  font-weight: 500;
  color: var(--text-primary);
}

/* Drag Handle Styles */
.drag-handle {
  color: var(--text-secondary);
  cursor: grab;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
}

.drag-handle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.drag-handle:active {
  cursor: grabbing;
}

/* SortableJS Styles */
.sortable-ghost {
  opacity: 0.4;
  background: rgba(99, 102, 241, 0.2) !important;
  border: 2px dashed rgba(99, 102, 241, 0.5) !important;
  transform: scale(0.98);
}

.sortable-drag {
  opacity: 0.9;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  transform: rotate(3deg) scale(1.02);
  z-index: 1000 !important;
}

.sortable-chosen {
  cursor: grabbing;
}

.sortable-fallback {
  opacity: 0.8;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: rotate(3deg);
}

/* Container state during dragging */
#selected-services.is-dragging {
  background: rgba(99, 102, 241, 0.05);
}

#selected-services.is-dragging
  .selected-service-item:not(.sortable-drag):not(.sortable-ghost) {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.delete-button {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.9) 0%,
    rgba(185, 28, 28, 0.8) 50%,
    rgba(220, 38, 38, 0.9) 100%
  );
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: white;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 6px 24px 0 rgba(220, 38, 38, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.2);
}

.delete-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.5s ease-out;
  z-index: 1;
}

.delete-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  background: inherit;
  filter: blur(0.5px);
  z-index: -1;
}

.delete-button:hover {
  background: linear-gradient(
    135deg,
    rgba(185, 28, 28, 0.95) 0%,
    rgba(153, 27, 27, 0.9) 50%,
    rgba(185, 28, 28, 0.95) 100%
  );
  transform: scale(1.08) translateY(-1px);
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 10px 32px 0 rgba(220, 38, 38, 0.5),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.3);
}

.delete-button:hover::before {
  left: 100%;
}

.delete-button:active {
  transform: scale(1.05) translateY(0px);
  transition: all 0.1s ease;
}

/* Routing Priority Reminder Styles */
.routing-priority-reminder {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1) 0%,
    rgba(249, 115, 22, 0.1) 100%
  );
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.routing-priority-reminder .warning-icon {
  color: rgba(245, 158, 11, 0.9);
  margin-top: 0.125rem;
  font-size: 1.1rem;
}

.routing-priority-reminder .content {
  flex: 1;
}

.routing-priority-reminder .content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.routing-priority-reminder .content span {
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

[data-theme="dark"] .routing-priority-reminder {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.15) 0%,
    rgba(249, 115, 22, 0.15) 100%
  );
  border-color: rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Component Styles
   ========================================================================== */

/* Loading States */
.app-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.loading-spinner {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.loading-spinner i {
  animation: spin 1s linear infinite;
}

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

/* Error States */
.initialization-error {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.error-icon {
  font-size: 4rem;
  color: var(--danger-color);
  margin-bottom: 1.5rem;
}

.initialization-error h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.initialization-error p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.initialization-error details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.initialization-error summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.initialization-error pre {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Toast Notifications */
.error-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  background: rgba(220, 38, 38, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 32px 0 rgba(220, 38, 38, 0.2);
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.error-toast.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.toast-content i:first-child {
  color: var(--danger-color);
  font-size: 1.25rem;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.2s ease;
  margin-left: auto;
}

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

/* Output Display */
.output-display {
  margin-top: 1rem;
}

.output-display pre {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.no-output {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
}

.no-output i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-output h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.output-error {
  text-align: center;
  padding: 2rem;
  color: var(--danger-color);
}

.output-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.output-error h3 {
  margin-bottom: 0.5rem;
}

/* Search Results Enhancements */
.search-error {
  padding: 1rem;
  text-align: center;
  color: var(--danger-color);
}

.search-error i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.search-no-results {
  color: var(--text-muted) !important;
  cursor: default !important;
  font-style: italic;
}

.search-no-results:hover {
  background: transparent !important;
  transform: none !important;
}

/* Selected Services Enhancements */
.selected-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.selected-service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  transition: width 0.2s ease;
}

.selected-service-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.1);
}

.selected-service-item:hover::before {
  width: 8px;
}

.service-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1;
}

.service-name {
  font-weight: 500;
  color: var(--text-primary);
}

.service-remove-btn {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--danger-color);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.service-remove-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
  transform: scale(1.1);
}

.service-remove-btn:active {
  transform: scale(0.95);
}

/* Button Enhancements */
.btn-danger {
  background: linear-gradient(
    135deg,
    var(--danger-color) 0%,
    var(--danger-hover) 100%
  );
  border: 1px solid var(--danger-color);
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--danger-hover) 0%, #991b1b 100%);
  border-color: var(--danger-hover);
}

/* Dark Theme Specific Overrides */
[data-theme="dark"] .output-display pre {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .selected-service-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .selected-service-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Dark theme drag handle styles */
[data-theme="dark"] .drag-handle {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .drag-handle:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

/* Dark theme sortable styles */
[data-theme="dark"] .sortable-ghost {
  background: rgba(99, 102, 241, 0.15) !important;
  border: 2px dashed rgba(99, 102, 241, 0.4) !important;
}

[data-theme="dark"] #selected-services.is-dragging {
  background: rgba(99, 102, 241, 0.03);
}

/* Focus Management for Accessibility */
.focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Disable drag animations for reduced motion */
  .sortable-ghost,
  .sortable-drag,
  .sortable-fallback {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-secondary: #000000;
  }

  [data-theme="dark"] {
    --border-color: #ffffff;
    --text-secondary: #ffffff;
  }
}

/* ==========================================================================
   Accessibility Utilities
   ========================================================================== */

/* Screen reader only content */
.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;
}

/* Show screen reader content when focused */
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--bg-primary);
  border: 2px solid var(--primary-color);
  border-radius: 4px;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10001;
  transition: top 0.2s ease;
}

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

/* Domain Preview Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  width: 90vw;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--danger-color);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.modal-close:hover {
  background: rgba(220, 38, 38, 0.2);
  transform: scale(1.1);
}

.modal-body {
  padding: 1.5rem;
  max-height: calc(80vh - 120px);
  overflow-y: auto;
}

.service-info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.service-details h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.service-details p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.domains-container {
  position: relative;
}

.loading-spinner {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.loading-spinner i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.domain-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  flex: 1;
  min-width: 120px;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.domains-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.domain-category {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.domain-category:last-child {
  border-bottom: none;
}

.category-header {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.category-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
}

.category-toggle {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.category-header.collapsed .category-toggle {
  transform: rotate(-90deg);
}

.domain-items {
  padding: 0.5rem;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  max-height: 200px;
  overflow-y: auto;
}

.category-header.collapsed + .domain-items {
  display: none;
}

.domain-item {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  word-break: break-all;
}

.domain-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.modal-error {
  text-align: center;
  padding: 2rem;
  color: var(--danger-color);
}

.modal-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-error h4 {
  margin-bottom: 0.5rem;
  color: var(--danger-color);
}

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

/* Preview button styles */
.preview-btn {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary-color);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.preview-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.3);
  transform: scale(1.05);
}

.preview-btn i {
  font-size: 0.7rem;
}

/* Scrollbar styling for modal */
.modal-body::-webkit-scrollbar,
.domains-list::-webkit-scrollbar,
.domain-items::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track,
.domains-list::-webkit-scrollbar-track,
.domain-items::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.modal-body::-webkit-scrollbar-thumb,
.domains-list::-webkit-scrollbar-thumb,
.domain-items::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.domains-list::-webkit-scrollbar-thumb:hover,
.domain-items::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Responsive modal styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95vw;
    max-height: 90vh;
    margin: 0 1rem;
  }

  .modal-header,
  .modal-body {
    padding: 1rem;
  }

  .service-info-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .domain-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .stat-item {
    min-width: auto;
  }

  .domain-items {
    grid-template-columns: 1fr;
    max-height: 150px;
  }

  .preview-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.4rem;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .modal-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
  }
}
