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

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

:root {
  /* Premium Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  
  --primary-color: #667eea;
  --primary-dark: #5568d3;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  
  --bg-dark: #0a0e27;
  --bg-darker: #050816;
  --card-bg: rgba(26, 32, 53, 0.8);
  --card-hover: rgba(26, 32, 53, 0.95);
  
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  
  --border-color: rgba(102, 126, 234, 0.1);
  --border-glow: rgba(102, 126, 234, 0.3);
  
  --success-color: #4facfe;
  --danger-color: #f5576c;
  --warning-color: #fee140;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-darker);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
  animation: backgroundMove 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes backgroundMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(5%, -5%) scale(1.05); }
  50% { transform: translate(-5%, 5%) scale(0.95); }
  75% { transform: translate(5%, 5%) scale(1.05); }
}

/* Navbar */
.navbar {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.5s ease-out;
}

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

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.75rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: transform 0.3s ease;
}

.nav-brand:hover {
  transform: scale(1.05);
}

.brand-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  background-size: 200% 200%;
  animation: gradientRotate 4s ease infinite;
}

.brand-accent {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientRotate 4s ease infinite 0.5s;
}

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

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(102, 126, 234, 0.1);
}

.mobile-menu-toggle i {
  width: 24px;
  height: 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.nav-link i {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  opacity: 0.1;
}

.nav-link svg {
  transition: transform 0.3s ease;
}

.nav-link:hover svg {
  transform: scale(1.1);
}

.nav-link:hover i {
  transform: scale(1.1);
}

.nav-link-admin {
  background: linear-gradient(135deg, rgba(254, 225, 64, 0.1) 0%, rgba(250, 112, 154, 0.1) 100%);
  border: 1px solid rgba(254, 225, 64, 0.2);
}

.nav-link-admin:hover {
  background: linear-gradient(135deg, rgba(254, 225, 64, 0.2) 0%, rgba(250, 112, 154, 0.2) 100%);
  border-color: rgba(254, 225, 64, 0.4);
}

/* User Menu */
.notification-menu {
  position: relative;
  margin-right: 1rem;
}

.notification-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-button:hover {
  background: var(--card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.notification-button i {
  width: 20px;
  height: 20px;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 2px 12px rgba(239, 68, 68, 0.8); }
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 380px;
  max-height: 500px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.notification-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

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

.notification-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.mark-read-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.mark-read-btn:hover {
  background: rgba(102, 126, 234, 0.1);
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  max-height: 350px;
}

.notification-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.notification-item:hover {
  background: rgba(102, 126, 234, 0.05);
}

.notification-item.unread {
  background: rgba(102, 126, 234, 0.08);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-gradient);
}

.notif-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.notif-icon i {
  width: 18px;
  height: 18px;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.notif-message {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-time {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.notif-unread-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-gradient);
  align-self: center;
}

.notification-loading,
.notification-empty,
.notification-error {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.notification-empty i {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.notification-loading .spinning {
  animation: spin 1s linear infinite;
}

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

.notification-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.notification-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.user-menu {
  position: relative;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.user-button:hover {
  background: var(--card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.user-button img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.user-button:hover img {
  transform: scale(1.1);
}

.user-button i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.user-button:hover i {
  transform: rotate(180deg);
}

.avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: var(--shadow-lg);
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 12px;
  margin: 0.5rem;
}

.user-dropdown a i {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.user-dropdown a:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--text-primary);
  transform: translateX(5px);
}

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

.dropdown-admin {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.dropdown-admin:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-color: rgba(102, 126, 234, 0.3);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 0;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
}

.brand {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientRotate 4s ease infinite;
}

@keyframes gradientRotate {
  0%, 100% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 50%;
    filter: hue-rotate(15deg);
  }
  75% {
    background-position: 0% 50%;
  }
}

.hero p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.btn i {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
}

.btn-login {
  padding: 0.75rem 1.5rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

.btn-sm i {
  width: 16px;
  height: 16px;
}

.btn-discord {
  background: linear-gradient(135deg, #5865F2 0%, #7289da 100%);
  color: white;
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
  box-shadow: 0 12px 35px rgba(88, 101, 242, 0.6);
  transform: translateY(-3px);
}

.btn-discord-link {
  background: linear-gradient(135deg, #5865F2 0%, #7289da 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.btn-discord-link:hover {
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.5);
}

.btn-purchase {
  background: var(--warning-gradient);
  color: var(--bg-darker);
  box-shadow: 0 2px 8px rgba(254, 225, 64, 0.3);
  font-weight: 700;
}

.btn-purchase:hover {
  box-shadow: 0 4px 12px rgba(254, 225, 64, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.5);
}

/* Projects */
.projects {
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientRotate 4s ease infinite;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.project-card:hover::before {
  opacity: 0.05;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-placeholder {
  width: 100%;
  height: 220px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 700;
  color: white;
  transition: transform 0.4s ease;
}

.project-card:hover .project-placeholder {
  transform: scale(1.1) rotate(5deg);
}

.project-info {
  padding: 1.75rem;
  position: relative;
  z-index: 1;
}

.project-info h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tech-tag {
  background: rgba(102, 126, 234, 0.15);
  color: var(--primary-color);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(102, 126, 234, 0.25);
  transform: scale(1.05);
}

.no-projects {
  text-align: center;
  color: var(--text-secondary);
  padding: 4rem;
  grid-column: 1 / -1;
  font-size: 1.1rem;
}

/* Roblox Versions */
.roblox-versions {
  margin: 2rem 0 4rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.roblox-versions h2 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientRotate 4s ease infinite;
}

.roblox-icon {
  font-size: 2.5rem;
  animation: bounce 2s ease-in-out infinite;
  width: 2.5rem;
  height: 2.5rem;
  stroke-width: 2;
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
}

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

.version-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.version-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.version-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--success-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 20px;
}

.version-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.version-card:hover::before {
  opacity: 0.05;
}

.version-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.platform-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
  width: 2rem;
  height: 2rem;
  stroke-width: 2;
}

.version-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.version-info {
  padding-left: 0.5rem;
}

.version-value {
  font-family: 'Monaco', 'Courier New', monospace;
  background: var(--success-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  word-break: break-all;
}

.version-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Executors */
.executors-section {
  margin: 3rem 0;
}

.executor-category {
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.executor-category h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  font-weight: 700;
  position: relative;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientRotate 4s ease infinite;
}

.executor-category h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  opacity: 0.3;
}

.executors-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.executor-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.executor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.executor-card:hover {
  transform: translateX(8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.executor-card:hover::before {
  opacity: 0.03;
}

.executor-card.updated {
  border-left-color: var(--success-color);
}

.executor-card.not-updated {
  border-left-color: var(--danger-color);
}

.executor-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.executor-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientRotate 4s ease infinite;
}

.executor-version {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: rgba(102, 126, 234, 0.1);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.executor-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.executor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.meta-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.executor-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-badge {
  background: rgba(102, 126, 234, 0.15);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-badge i {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.feature-badge:hover {
  background: rgba(102, 126, 234, 0.25);
  transform: scale(1.05);
}

.executor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-unc {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
  color: var(--success-color);
  border: 1px solid rgba(79, 172, 254, 0.3);
}

.badge-free {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
  color: var(--success-color);
  border: 1px solid rgba(79, 172, 254, 0.3);
}

.badge-paid {
  background: linear-gradient(135deg, rgba(250, 112, 154, 0.2) 0%, rgba(254, 225, 64, 0.2) 100%);
  color: var(--warning-color);
  border: 1px solid rgba(254, 225, 64, 0.3);
}

.badge-detected {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  color: var(--primary-color);
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.badge-success {
  background: var(--success-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.badge-secondary {
  background: rgba(160, 174, 192, 0.2);
  color: var(--text-secondary);
  border: 1px solid rgba(160, 174, 192, 0.3);
}

.badge-warning {
  background: var(--warning-gradient);
  color: var(--bg-darker);
  box-shadow: 0 2px 8px rgba(254, 225, 64, 0.3);
}

.badge-info {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.executor-status {
  margin-left: auto;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-updated {
  background: var(--success-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.status-not-updated {
  background: var(--secondary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.no-executors {
  text-align: center;
  color: var(--text-secondary);
  padding: 4rem;
  font-size: 1.1rem;
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.login-box {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  max-width: 450px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease-out;
  position: relative;
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0.05;
  border-radius: 24px;
  pointer-events: none;
}

.login-box h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 800;
}

.login-box p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

/* Admin Styles */
.admin-dashboard {
  padding: 2rem 0;
}

.admin-dashboard h1 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientRotate 4s ease infinite, fadeInUp 0.8s ease-out;
}

.admin-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.admin-nav-link i {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.admin-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.admin-nav-link:hover::before,
.admin-nav-link.active::before {
  opacity: 0.15;
}

.admin-section {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  position: relative;
  overflow: hidden;
}

.admin-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.admin-section:hover::before {
  opacity: 0.02;
}

.admin-section h2 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientRotate 4s ease infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(102, 126, 234, 0.05) 180deg, transparent 360deg);
  animation: rotate 8s linear infinite;
}

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

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
  width: 3rem;
  height: 3rem;
  stroke-width: 2;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.stat-link:hover {
  gap: 1rem;
  color: var(--primary-dark);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.action-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.action-card:hover {
  background: var(--card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.action-card:hover::before {
  opacity: 0.05;
}

.action-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.5));
  width: 2.5rem;
  height: 2.5rem;
  stroke-width: 2;
}

.action-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.action-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Forms */
.admin-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(10, 14, 39, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(10, 14, 39, 0.8);
}

.form-group-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-group-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.form-group-checkbox label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
}

.admin-executor-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}

/* Tables */
.admin-table {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: rgba(102, 126, 234, 0.1);
}

th {
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

tr {
  transition: all 0.3s ease;
}

tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

/* Footer */
.footer {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 3rem 0 1.5rem;
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary-gradient);
  opacity: 0.3;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-weight: 700;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}

/* Responsive */
@media (max-width: 968px) {
  .hero h1 {
    font-size: 3rem;
  }

  .container {
    padding: 2rem 1.5rem;
  }
  
  /* Show mobile menu toggle on tablets */
  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  /* Hide desktop nav menu on tablets */
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 80px);
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 0.5rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
  
  .notification-menu,
  .user-menu {
    width: 100%;
  }
  
  .user-button {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  /* Mobile menu takes full width */
  .nav-menu {
    width: 100%;
    right: -100%;
  }
  
  .nav-menu.active {
    right: 0;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .stats-grid,
  .version-cards,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    flex-direction: column;
  }
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Provider Selector Styles */
.provider-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.provider-buttons {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.provider-btn {
  padding: 0.875rem 1.75rem;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.provider-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.provider-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

.provider-btn:hover::before {
  opacity: 1;
}

.provider-btn.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.provider-btn.active::before {
  opacity: 0;
}

.provider-btn i {
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
  z-index: 1;
}

/* Provider Badges */
.script-provider-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

.scriptblox-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.rscripts-badge {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Inline Provider Selector for Trending */
.provider-selector-inline {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.provider-btn-sm {
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.provider-btn-sm:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.provider-btn-sm.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.provider-btn-sm i {
  width: 1rem;
  height: 1rem;
}

.trending-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Scripts Page */
.scripts-search {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(10, 14, 39, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}

.search-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-container i {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}

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

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.filter-select {
  padding: 0.75rem 1rem;
  background: rgba(10, 14, 39, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.btn-secondary {
  background: rgba(160, 174, 192, 0.2);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(160, 174, 192, 0.3);
  color: var(--text-primary);
}

.scripts-section {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.script-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.script-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.script-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.script-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.script-card:hover .script-image img {
  transform: scale(1.1);
}

.script-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.script-placeholder i {
  width: 4rem;
  height: 4rem;
  color: white;
  stroke-width: 2;
}

.script-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.script-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.script-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.script-game {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.script-game i {
  width: 16px;
  height: 16px;
}

.script-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.meta-item i {
  width: 16px;
  height: 16px;
}

.meta-free {
  color: var(--success-color);
  font-weight: 600;
}

.meta-paid {
  color: var(--warning-color);
  font-weight: 600;
}

.script-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.trending-card {
  position: relative;
}

.trending-rank {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--warning-gradient);
  color: var(--bg-darker);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(254, 225, 64, 0.5);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pagination-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.pagination-btn i {
  width: 20px;
  height: 20px;
}

.pagination-info {
  color: var(--text-secondary);
  font-weight: 600;
}

.no-scripts {
  text-align: center;
  padding: 4rem;
  color: var(--text-secondary);
}

.error-message {
  background: rgba(245, 87, 108, 0.1);
  border: 1px solid rgba(245, 87, 108, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--danger-color);
  margin-bottom: 2rem;
}

.error-message i {
  width: 24px;
  height: 24px;
}

/* Script Details Page */
.script-details-page {
  animation: fadeInUp 0.8s ease-out;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

.back-link:hover {
  color: var(--primary-color);
  transform: translateX(-5px);
}

.back-link i {
  width: 20px;
  height: 20px;
}

.script-header {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
}

.script-main-image {
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
}

.script-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.script-placeholder-large {
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.script-placeholder-large i {
  width: 8rem;
  height: 8rem;
  color: white;
}

.title-with-provider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.provider-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: fadeInRight 0.6s ease-out;
}

.provider-badge-large i {
  width: 1.25rem;
  height: 1.25rem;
}

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

.script-info-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientRotate 4s ease infinite;
}

.script-badges-large {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.script-game-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.script-game-info i {
  width: 20px;
  height: 20px;
}

.script-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-item i {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.stat-item span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-item small {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.script-owner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.script-owner img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.owner-name {
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.owner-status {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

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

.script-details-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.script-section {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
}

.script-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.script-section h2 i {
  width: 28px;
  height: 28px;
}

.script-features-text {
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
}

.script-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  background: rgba(102, 126, 234, 0.15);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.script-code-container {
  position: relative;
  background: rgba(10, 14, 39, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.script-code-container pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  max-height: 500px;
}

.script-code-container code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.copy-code-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.copy-code-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.copy-code-btn i {
  width: 16px;
  height: 16px;
}

@media (max-width: 968px) {
  .script-header {
    grid-template-columns: 1fr;
  }

  .script-main-image {
    height: 300px;
  }
}

/* Tools Page */
.tools-container {
  margin-top: 3rem;
}

.tools-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tool-tab {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateY(-2px);
}

.tool-tab.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.tool-tab i {
  width: 1.25rem;
  height: 1.25rem;
}

.tool-panel {
  display: none;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  animation: fadeInUp 0.5s ease-out;
}

.tool-panel.active {
  display: block;
}

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

.tool-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.tool-header h2 i {
  width: 2rem;
  height: 2rem;
  color: #8b5cf6;
}

.tool-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
}

.paste-hint {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.paste-hint i {
  width: 1rem;
  height: 1rem;
  color: #8b5cf6;
}

kbd {
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tool-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.tool-input,
.tool-select,
.tool-textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.tool-input:focus,
.tool-select:focus,
.tool-textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.tool-textarea {
  font-family: 'Courier New', monospace;
  resize: vertical;
  min-height: 200px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  width: 100%;
  margin-top: 1rem;
}

/* Upload Areas */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  border: 3px dashed rgba(139, 92, 246, 0.3);
  border-radius: 1rem;
  background: rgba(139, 92, 246, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.upload-area i {
  color: #8b5cf6;
  margin-bottom: 1rem;
}

.upload-area h3 {
  margin: 0.5rem 0;
  color: #fff;
}

.upload-area p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0.25rem 0;
}

.upload-limit {
  font-size: 0.875rem;
  margin-top: 1rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Preview Areas */
#image-preview {
  text-align: center;
  margin-bottom: 2rem;
}

#image-preview img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

#image-preview p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

#file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.file-info i {
  color: #8b5cf6;
}

.file-info p {
  margin: 0.25rem 0;
  color: #fff;
}

.file-size {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Result Boxes */
.result-box {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 1rem;
  animation: fadeIn 0.5s ease-out;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.result-header i {
  width: 2rem;
  height: 2rem;
  color: #22c55e;
}

.result-header h3 {
  margin: 0;
  color: #22c55e;
  font-size: 1.5rem;
}

.result-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-item label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.copy-box {
  display: flex;
  gap: 0.5rem;
}

.result-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: #fff;
  font-family: monospace;
}

.url-display {
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  word-break: break-all;
  margin: 0;
}

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

/* Paste View */
.paste-view {
  margin-top: 3rem;
}

.paste-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 1rem 1rem 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
}

.paste-info h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.paste-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.6);
}

.paste-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.paste-meta i {
  width: 1rem;
  height: 1rem;
}

.paste-actions {
  display: flex;
  gap: 0.75rem;
}

.paste-content {
  background: #282c34;
  border-radius: 0 0 1rem 1rem;
  overflow: hidden;
}

.paste-content pre {
  margin: 0;
  padding: 2rem;
  overflow-x: auto;
}

.paste-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* File View */
.file-view {
  margin-top: 3rem;
}

.file-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.file-info-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-info-header h1 i {
  color: #8b5cf6;
}

.file-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.6);
}

.file-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-meta i {
  width: 1rem;
  height: 1rem;
}

.image-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.image-container img {
  max-width: 100%;
  border-radius: 0.5rem;
}

@media (max-width: 768px) {
  .tool-panel {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .paste-header,
  .file-header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .paste-actions,
  .file-actions,
  .result-actions {
    width: 100%;
  }
}

/* ==================== COMPREHENSIVE MOBILE RESPONSIVE STYLES ==================== */

/* Mobile viewport meta tag support */
@viewport {
  width: device-width;
  zoom: 1.0;
}

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 2rem;
  }

  .hero {
    padding: 4rem 2rem;
  }

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

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

/* Mobile (768px and below) */
@media (max-width: 768px) {
  /* Base adjustments */
  body {
    font-size: 14px;
  }

  .container {
    padding: 0 1rem;
  }

  /* Navbar mobile */
  .navbar {
    padding: 1rem 0;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-links {
    display: none; /* Hide desktop menu */
  }

  .nav-actions {
    flex-direction: row;
    gap: 0.5rem;
  }

  .navbar .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  /* Hero section mobile */
  .hero {
    padding: 3rem 1rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

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

  /* Features grid mobile */
  .features-grid,
  .executors-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  /* Stats grid mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  /* Dashboard mobile */
  .dashboard-header {
    padding: 2rem 1rem;
  }

  .dashboard-title h1 {
    font-size: 1.75rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1rem;
  }

  /* Ticket system mobile */
  .ticket-view-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 80px auto 40px;
    padding: 0 1rem;
  }

  .sidebar-content {
    position: static;
    order: -1; /* Show sidebar first on mobile */
  }

  .ticket-header {
    padding: 1.5rem;
  }

  .ticket-title {
    font-size: 1.5rem;
  }

  .ticket-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .message-bubble {
    padding: 1rem;
  }

  .message-content {
    font-size: 0.95rem;
  }

  .reply-form {
    padding: 1.5rem;
  }

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

  /* Cards mobile */
  .card {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  /* Tables mobile */
  .table-container {
    overflow-x: auto;
  }

  table {
    font-size: 0.875rem;
  }

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

  /* Forms mobile */
  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Buttons mobile */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

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

  /* Modal mobile */
  .modal-content {
    width: 95%;
    max-width: 500px;
    margin: 1rem;
    padding: 1.5rem;
  }

  /* Dropdown mobile */
  .user-dropdown,
  .notification-dropdown {
    position: fixed;
    right: 0;
    left: 0;
    top: 70px;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  /* Footer mobile */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

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

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

  /* Login page mobile */
  .login-container {
    padding: 2rem 1rem;
    min-height: calc(100vh - 80px);
  }

  .login-card {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  /* Executor details mobile */
  .executor-details {
    grid-template-columns: 1fr;
  }

  .executor-sidebar {
    order: -1;
  }

  /* Script cards mobile */
  .scripts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Admin panel mobile */
  .admin-container {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
  }

  .admin-nav {
    display: flex;
    overflow-x: auto;
    flex-direction: row;
  }

  .admin-nav a {
    white-space: nowrap;
  }

  /* Notification badge mobile */
  .notification-badge {
    top: -5px;
    right: -5px;
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
  }

  /* Search bar mobile */
  .search-bar {
    width: 100%;
    max-width: 100%;
  }

  /* Pagination mobile */
  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  /* Extra small adjustments */
  body {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

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

  .card {
    padding: 1rem;
  }

  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .ticket-header {
    padding: 1rem;
  }

  .ticket-title {
    font-size: 1.25rem;
  }

  .message-bubble {
    padding: 0.875rem;
  }

  .modal-content {
    padding: 1rem;
  }

  /* Hide less important elements on very small screens */
  .text-muted-small {
    display: none;
  }

  /* Stack everything vertically */
  .flex-row-mobile {
    flex-direction: column !important;
  }

  /* Compact spacing */
  .section {
    padding: 2rem 0;
  }

  .stats-grid,
  .features-grid {
    gap: 0.75rem;
  }
}

/* Landscape mobile fix */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn,
  .nav-link,
  .dropdown-item,
  .card-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

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

  .btn:hover {
    transform: none;
  }

  /* Better tap highlighting */
  a, button, .clickable {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Dark mode adjustments for mobile */
@media (prefers-color-scheme: dark) {
  /* Already dark by default */
}

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

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .sidebar-content,
  .admin-sidebar {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card,
  .message-bubble {
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}

