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

:root {
  --primary-color: #00d4ff;
  --secondary-color: #0099ff;
  --dark-bg: #0a0e27;
  --card-bg: #151b3d;
  --text-light: #ffffff;
  --text-gray: #a0a8c0;
  --success-color: #00ff88;
  --border-color: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #151b3d 100%);
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--text-light);
  border: 2px solid var(--primary-color);
  color: var(--dark-bg);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}

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

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

.hero {
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--text-light);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Banner responsivo */
#bannerImage {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Limitar altura em desktop para evitar imagens enormes */
@media (min-width: 769px) {
  #bannerImage {
    max-height: 380px;
    object-fit: contain; /* Mostrar a imagem inteira sem cortar */
  }
}

/* Em mobile, limitar altura e largura para melhorar performance */
@media (max-width: 768px) {
  #bannerImage {
    max-height: 240px;
    object-fit: cover;
  }
}

.plan-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

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

.plan-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.plan-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.plan-name {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.plan-devices {
  color: var(--text-gray);
  margin-bottom: 20px;
}

.plan-price {
  font-size: 48px;
  font-weight: bold;
  margin: 20px 0;
}

.plan-price span {
  font-size: 20px;
  color: var(--text-gray);
}

.plan-features {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.plan-features li {
  padding: 10px 0;
  color: var(--text-gray);
}

.plan-features li::before {
  content: '✓ ';
  color: var(--success-color);
  font-weight: bold;
  margin-right: 10px;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  border: 2px solid var(--border-color);
  text-align: center;
}

.video-placeholder {
  width: 100%;
  height: 400px;
  background: var(--dark-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 18px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
}

.testimonial-text {
  color: var(--text-gray);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-info p {
  color: var(--text-gray);
  font-size: 14px;
}

footer {
  background: var(--dark-bg);
  padding: 40px 0;
  text-align: center;
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
}

footer p {
  color: var(--text-gray);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  border: 2px solid var(--border-color);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.modal-loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 6px solid rgba(255,255,255,0.15);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.modal-message {
  text-align: center;
  font-size: 16px;
  color: var(--text-gray);
  min-height: 40px;
}

.modal-actions {
  display: none;
  justify-content: center;
  margin-top: 10px;
}

.modal-actions.active { display: flex; }

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

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

.modal h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.modal p {
  color: var(--text-gray);
  margin-bottom: 30px;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  flex-direction: column;
}

.form-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.form-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  max-width: 450px;
  width: 100%;
  border: 2px solid var(--border-color);
}

.form-card h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-gray);
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  background: var(--dark-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-gray);
}

.form-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

.dashboard {
  padding: 40px 0;
  min-height: 100vh;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 50px;
}

.dashboard-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.dashboard-section {
  margin-bottom: 50px;
}

.dashboard-section h2 {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.ssh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.ssh-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s;
}

.ssh-card.expired {
  opacity: 0.6;
  border-color: rgba(255, 77, 77, 0.3);
}

.ssh-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ssh-card-header h3 {
  color: var(--primary-color);
  font-size: 20px;
  margin: 0;
}

.ssh-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.ssh-status.active {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.ssh-status.expired {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid #ff4d4d;
  color: #ff4d4d;
}

.ssh-card h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 20px;
}

.ssh-info {
  margin-bottom: 15px;
}

.ssh-info strong {
  color: var(--text-light);
  display: block;
  margin-bottom: 5px;
}

.ssh-info span {
  color: var(--text-gray);
  font-family: 'Courier New', monospace;
}

.validity {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--success-color);
  border-radius: 20px;
  color: var(--success-color);
  font-size: 14px;
}

.empty-state {
  background: var(--card-bg);
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  padding: 60px 30px;
  text-align: center;
}

.empty-state p {
  color: var(--text-gray);
  margin-bottom: 20px;
}

.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.notification-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 25px;
  min-width: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.5s ease;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 15px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

.notification-popup.hiding {
  animation: slideOutRight 0.3s ease forwards;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.notification-content p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
}

.notification-content small {
  color: var(--text-gray);
  font-size: 12px;
}

.plan-selector {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.plan-option {
  background: var(--dark-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-option:hover {
  border-color: var(--primary-color);
}

.plan-option.selected {
  border-color: var(--primary-color);
  background: rgba(0, 212, 255, 0.1);
}

.plan-option-info h3 {
  margin-bottom: 5px;
  color: var(--text-light);
}

.plan-option-info p {
  margin: 0;
  color: var(--text-gray);
  font-size: 14px;
}

.plan-option-price {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 768px) {
  .inline-fields {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: #0f1433;
    border-left: 2px solid var(--border-color);
    padding: 80px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    display: none;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2500;
    will-change: transform;
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
  }

  nav .nav-links.open {
    display: flex;
    transform: translateX(0);
  }

  nav .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: var(--card-bg);
    border-left: 2px solid var(--border-color);
    padding: 80px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2500;
  }

  nav .nav-links.open {
    transform: translateX(0);
  }

  nav .nav-links li .btn {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    gap: 15px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .plans-grid,
  .testimonials-grid,
  .ssh-cards {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: scale(1);
  }

  .notification-popup {
    top: 20px;
    bottom: auto;
    right: 20px;
    left: 20px;
    min-width: auto;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
