:root {
  /* Cores Light Mode - Nova Paleta */
  --primary-light: #2563eb;
  --secondary-light: #7c3aed;
  --accent-light: #06b6d4;
  --bg-light: #f8fafc;
  --surface-light: #ffffff;
  --text-light: #1e293b;
  --text-secondary-light: #64748b;
  --border-light: #e2e8f0;
  
  /* Cores Dark Mode - Nova Paleta */
  --primary-dark: #3b82f6;
  --secondary-dark: #8b5cf6;
  --accent-dark: #22d3ee;
  --bg-dark: #0f172a;
  --surface-dark: #1e293b;
  --text-dark: #f1f5f9;
  --text-secondary-dark: #94a3b8;
  --border-dark: #334155;
  
  /* Variáveis dinâmicas */
  --primary: var(--primary-light);
  --secondary: var(--secondary-light);
  --accent: var(--accent-light);
  --bg: var(--bg-light);
  --surface: var(--surface-light);
  --text: var(--text-light);
  --text-secondary: var(--text-secondary-light);
  --border: var(--border-light);
  
  /* Efeitos e Transições */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 1rem;
  --border-radius-lg: 1.5rem;
}

[data-theme="dark"] {
  --primary: var(--primary-dark);
  --secondary: var(--secondary-dark);
  --accent: var(--accent-dark);
  --bg: var(--bg-dark);
  --surface: var(--surface-dark);
  --text: var(--text-dark);
  --text-secondary: var(--text-secondary-dark);
  --border: var(--border-dark);
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: var(--transition-slow);
  /* Melhorias para touch */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Mostra cursor padrão em elementos interativos */
a, button, .link-card, .theme-toggle {
  cursor: pointer;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0.1;
  filter: blur(40px);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 20%;
  animation-delay: -10s;
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.shape-4 {
  width: 250px;
  height: 250px;
  top: 30%;
  right: 20%;
  animation-delay: -15s;
}

.shape-5 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  right: 5%;
  animation-delay: -7s;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

/* Container Principal CORRIGIDO */
.main-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Header - LAYOUT CORRIGIDO */
.header {
  padding: 1.5rem 0 1rem;
  position: relative;
  width: 100%;
  background: var(--bg);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  flex-shrink: 0;
}

.logo-icon:hover {
  transform: translateY(-2px) rotate(5deg);
  box-shadow: var(--shadow-xl);
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  text-align: left;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 0.25rem;
  text-align: left;
}

.header-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  background: var(--surface);
}

.toggle-track {
  width: 48px;
  height: 24px;
  background: var(--surface);
  border-radius: 12px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: white;
  font-size: 0.7rem;
}

[data-theme="dark"] .toggle-thumb {
  transform: translateX(24px);
}

.toggle-thumb i {
  position: absolute;
  transition: var(--transition);
  opacity: 0;
}

.toggle-thumb .fa-moon { opacity: 1; }
.toggle-thumb .fa-sun { opacity: 0; }

[data-theme="dark"] .toggle-thumb .fa-moon { opacity: 0; }
[data-theme="dark"] .toggle-thumb .fa-sun { opacity: 1; }

.header-decoration {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

.decoration-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Main Content CORRIGIDO */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Hero Section - LAYOUT CORRIGIDO */
.hero-section {
  padding: 1.5rem 0 1.5rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-align: center;
}

.title-line {
  display: block;
}

.title-line.accent {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

/* Seção de Planos - SUPER COMPACTO */
.plans-section {
  padding: 1rem 0 2rem;
  position: relative;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.plan-card {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 1rem 0.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.plan-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.02);
  z-index: 2;
}

.plan-card.popular:hover {
  transform: scale(1.02) translateY(-3px);
}

.plan-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.plan-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: white;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.plan-period {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.plan-price {
  margin-bottom: 0.75rem;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.price-period {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.price-savings {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 0.25rem;
  display: inline-block;
}

.plan-features {
  list-style: none;
  margin: 0.75rem 0;
  text-align: left;
  flex-grow: 1;
}

.plan-features li {
  padding: 0.25rem 0;
  color: var(--text);
  position: relative;
  padding-left: 1rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

.plan-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 0.7rem;
}

.plan-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  width: 100%;
  margin-top: auto;
}

.plan-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

.plan-button.popular-btn {
  background: linear-gradient(135deg, #10b981, #059669);
}

.plan-button.popular-btn:hover {
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.2);
}

.system-selector {
  margin: 0.75rem 0;
  text-align: left;
}

.system-selector label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.75rem;
}

.system-selector select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.75rem;
  transition: var(--transition);
}

.system-selector select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Links Section CORRIGIDO */
.links-section {
  padding: 2rem 0 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.divider-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 1px;
}

.divider-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Categorias de Sistemas - SEMPRE ABERTAS */
.category-section {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--primary)15, var(--surface) 70%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.category-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.category-content {
  padding: 1.5rem;
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Links Grid CORRIGIDO - RESPONSIVO */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0;
}

.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: cardEntrance 0.6s ease-out forwards;
  min-height: 100px;
  cursor: pointer;
  /* Melhorias para touch */
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
  -webkit-user-drag: none;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: var(--transition-slow);
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.link-card:hover::before {
  left: 100%;
}

.link-card.main-link {
  border: 2px solid #FF6B35;
  background: linear-gradient(135deg, var(--surface), rgba(255, 107, 53, 0.05));
}

.link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--bg);
  transition: var(--transition);
  flex-shrink: 0;
}

.link-card:hover .link-icon {
  transform: scale(1.1) rotate(5deg);
}

.link-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 60px;
  justify-content: center;
}

.link-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  transition: var(--transition);
  line-height: 1.3;
  -webkit-user-select: none;
  user-select: none;
}

.link-card:hover .link-title {
  color: var(--primary);
}

.link-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: block;
  overflow: visible;
  white-space: normal;
  height: auto;
  -webkit-user-select: none;
  user-select: none;
}

.link-card:hover .link-description {
  color: var(--text);
}

.link-arrow {
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-10px);
  align-self: center;
}

.link-card:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary);
}

/* Badges para sistemas - CORRIGIDAS PARA NÃO CORTAR */
.main-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #FF6B35;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  -webkit-user-select: none;
  user-select: none;
  z-index: 10;
  line-height: 1;
  white-space: nowrap;
}

.paid-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  -webkit-user-select: none;
  user-select: none;
  z-index: 10;
  line-height: 1;
  white-space: nowrap;
}

.free-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  -webkit-user-select: none;
  user-select: none;
  z-index: 10;
  line-height: 1;
  white-space: nowrap;
}

/* Footer CORRIGIDO */
.footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--border), transparent) 1;
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--bg);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.footer a:hover {
  color: var(--secondary);
}

.footer-subtitle {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.8;
  -webkit-user-select: none;
  user-select: none;
}

.footer-subtitle .fa-heart {
  color: #e74c3c;
  margin: 0 0.25rem;
}

/* Animações ATUALIZADAS */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* MELHORIAS PARA TOUCH E SCROLL EM MOBILE */
.link-card.touch-active {
  background: var(--surface);
  border-color: var(--primary);
  transform: scale(0.98);
  transition: transform 0.1s ease, background-color 0.1s ease;
}

/* Suporte para dispositivos com hover */
@media (hover: none) {
  .link-card:active {
    transform: scale(0.98);
    background: var(--surface);
    border-color: var(--primary);
  }
  
  .link-card {
    cursor: pointer;
  }
  
  .link-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  
  .link-card:hover .link-icon {
    transform: none;
  }
  
  .link-card:hover .link-title {
    color: var(--text);
  }
  
  .link-card:hover .link-description {
    color: var(--text-secondary);
  }
  
  .link-card:hover .link-arrow {
    opacity: 0;
    transform: translateX(-10px);
  }
  
  .category-header:hover {
    background: linear-gradient(135deg, var(--primary)15, var(--surface) 70%);
  }
}

/* RESPONSIVIDADE CORRIGIDA */

/* Desktop Médio */
@media (max-width: 1200px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .header-content {
    padding: 0 1.5rem;
  }
  
  .main-content {
    padding: 0 1.5rem;
  }
  
  .header-decoration {
    padding: 0 1.5rem;
  }
  
  .links-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
  
  /* Planos - Tablet */
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .plan-card {
    min-height: 360px;
  }
  
  /* Categorias - Tablet */
  .category-header {
    padding: 1rem 1.25rem;
  }
  
  .category-title {
    font-size: 1.1rem;
  }
  
  .category-content {
    padding: 1.25rem;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .header {
    padding: 1rem 0;
  }
  
  .header-content {
    padding: 0 1rem;
    flex-direction: row;
    align-items: center;
  }
  
  .logo-section {
    gap: 0.75rem;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .subtitle {
    font-size: 0.8rem;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .header-actions {
    margin-left: auto;
  }
  
  .main-content {
    padding: 0 1rem;
  }
  
  .header-decoration {
    padding: 0 1rem;
    margin-top: 0.75rem;
  }
  
  .hero-section {
    padding: 1rem 0 1rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-description {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .links-section {
    padding: 1rem 0 3rem;
  }
  
  .section-header {
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    /* Melhora performance do scroll em mobile */
    -webkit-overflow-scrolling: touch;
  }
  
  .link-card {
    padding: 1.25rem;
    min-height: 90px;
    gap: 0.875rem;
    /* Otimizações para mobile */
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .link-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  
  .link-content {
    gap: 0.375rem;
  }
  
  .link-title {
    font-size: 1rem;
  }
  
  .link-description {
    font-size: 0.8rem;
  }
  
  /* Badges Mobile Large */
  .main-badge,
  .paid-badge,
  .free-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
  }
  
  .plan-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
  }
  
  .footer {
    padding: 1.5rem 0;
  }
  
  .footer-content {
    padding: 0 1rem;
  }
  
  /* Planos - Mobile Large */
  .plans-section {
    padding: 0.75rem 0 1.5rem;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .plan-card {
    padding: 1rem 0.75rem;
    min-height: 340px;
  }
  
  .price-amount {
    font-size: 1.5rem;
  }
  
  /* Categorias - Mobile Large */
  .category-section {
    margin-bottom: 1.5rem;
  }
  
  .category-header {
    padding: 0.875rem 1rem;
  }
  
  .category-title {
    font-size: 1rem;
  }
  
  .category-content {
    padding: 1rem;
  }
  
  /* Otimizações de performance para mobile */
  .shape {
    filter: blur(20px);
    opacity: 0.08;
  }
  
  .shape-1,
  .shape-2,
  .shape-3,
  .shape-4,
  .shape-5 {
    width: 150px;
    height: 150px;
  }
  
  .gradient-overlay {
    opacity: 0.7;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .header-content {
    padding: 0 0.75rem;
  }
  
  .main-content {
    padding: 0 0.75rem;
  }
  
  .header-decoration {
    padding: 0 0.75rem;
  }
  
  .logo-section {
    gap: 0.5rem;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .subtitle {
    font-size: 0.75rem;
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .hero-section {
    padding: 0.75rem 0 0.75rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
    padding: 0;
  }
  
  .links-section {
    padding: 0.5rem 0 2rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .link-card {
    padding: 1rem;
    min-height: 85px;
    gap: 0.75rem;
    flex-direction: row;
    text-align: left;
  }
  
  .link-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  
  .link-content {
    align-items: flex-start;
    min-height: auto;
  }
  
  .link-title {
    font-size: 0.95rem;
  }
  
  .link-description {
    font-size: 0.75rem;
  }
  
  /* Badges Mobile Small */
  .main-badge,
  .paid-badge,
  .free-badge {
    top: 0.4rem;
    right: 0.4rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6rem;
  }
  
  .plan-badge {
    top: 0.4rem;
    right: 0.4rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6rem;
  }
  
  .footer {
    padding: 1rem 0;
  }
  
  .footer-content {
    padding: 0 0.75rem;
  }
  
  .footer-subtitle {
    font-size: 0.75rem;
  }
  
  /* Planos - Mobile Small */
  .plans-section {
    padding: 0.5rem 0 1rem;
  }
  
  .plan-card {
    padding: 0.875rem 0.5rem;
    min-height: 320px;
  }
  
  .plan-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .plan-name {
    font-size: 1rem;
  }
  
  .price-amount {
    font-size: 1.3rem;
  }
  
  /* Categorias - Mobile Small */
  .category-header {
    padding: 0.75rem 0.875rem;
  }
  
  .category-title {
    font-size: 0.95rem;
  }
  
  .category-content {
    padding: 0.875rem;
  }
}

/* Utilitários de Acessibilidade */
.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;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Prevenção de seleção de texto em mobile */
@media (max-width: 768px) {
  body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .link-card, .link-title, .link-description, .category-header {
    -webkit-user-select: none;
    user-select: none;
  }
}

/* Melhoria de performance para animações em mobile */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}