:root {
  --bg-dark: #121212;
  --bg-darker: #0a0a0a;
  --bg-light: #1e1e1e;
  --bg-lighter: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent-yellow: #ffc107;
  --accent-yellow-dark: #e0a800;
  --accent-red: #dc3545;
  --accent-red-dark: #bd2130;
  --border-color: #333333;
  --success-green: #28a745;
  --gradient-primary: linear-gradient(135deg, #ffc107, #ff9800);
  --gradient-danger: linear-gradient(135deg, #dc3545, #bd2130);
}

body {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 70px 0 0;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

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

.loading-spinner {
  border: 5px solid rgba(255, 193, 7, 0.3);
  border-radius: 50%;
  border-top: 5px solid var(--accent-yellow);
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Bitcoin Rain Animation */
.bitcoin-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.bitcoin {
  position: absolute;
  width: 40px;
  height: 40px;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/4/46/Bitcoin.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.7)) brightness(0.9) sepia(1)
    hue-rotate(10deg) saturate(3);
  animation: fall 5s linear infinite;
  transition: transform 0.3s ease;
}

.bitcoin:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.9)) brightness(1.1) sepia(1)
    hue-rotate(10deg) saturate(4);
}

@keyframes fall {
  0% {
    transform: translateY(-100px) translateX(10px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(100vh) translateX(-10px) rotate(360deg);
    opacity: 0;
  }
}

/* Header & Menu */
.menu-container {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-darker);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  height: 60px;
  box-sizing: border-box;
}

.logo-container {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-yellow);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: rotate(15deg);
}

.logo-text {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 21px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu {
  display: flex;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.menu ul li a {
  display: inline-block;
  color: var(--text-primary);
  background: var(--gradient-danger);
  padding: 12px 20px;
  text-decoration: none;
  font-size: 15px;
  border-radius: 5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  min-width: max-content;
  position: relative;
  overflow: hidden;
}

.menu ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.menu ul li a:hover::before {
  left: 100%;
}

.menu ul li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.menu ul li a i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* Crypto Ticker */
.ticker-container {
  width: 100%;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  margin-right: 15px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.ticker-item:hover {
  background-color: rgba(255, 193, 7, 0.1);
  transform: scale(1.05);
}

.ticker-item img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.ticker-coin {
  font-weight: 600;
  margin-right: 5px;
  color: var(--text-primary);
}

.ticker-price {
  margin-right: 5px;
}

.price-change {
  margin-left: 8px;
  font-weight: bold;
}

.price-change.up {
  color: var(--success-green);
}

.price-change.down {
  color: var(--accent-red);
}

.ticker-loading {
  padding: 8px 15px;
  color: var(--text-secondary);
  font-style: italic;
}

@keyframes ticker {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Profile Section */
.profile-section {
  padding: 20px;
}

.profile-card {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.05;
  z-index: -1;
}

.profile-header {
  background: linear-gradient(to bottom, var(--bg-darker), var(--bg-dark));
  padding: 30px 10px;
  border-radius: 10px 10px 0 0;
}

.profile-header img {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  border: 3px solid var(--accent-yellow);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
  transition: all 0.3s ease;
  object-fit: cover;
}

.profile-header img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(255, 193, 7, 0.5);
}

.profile-header h1 {
  font-size: 28px;
  margin: 15px 0 10px;
  color: var(--accent-yellow);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.profile-tagline {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 20px;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.profile-stats div {
  text-align: center;
}

.profile-stats span {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-yellow);
}

.profile-stats p {
  color: var(--text-secondary);
  margin: 5px 0 0;
  font-size: 14px;
}

/* Live Counter */
.live-counter {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
  padding: 15px;
  background-color: var(--bg-light);
  border-radius: 10px;
}

.counter-item {
  text-align: center;
}

.counter-number {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent-yellow);
  display: block;
}

.counter-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  padding: 10px 15px;
  border-radius: 30px;
  background-color: var(--bg-light);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-link::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: 0.5s;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  background-color: var(--bg-lighter);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.social-link:hover img {
  transform: rotate(15deg);
}

.cta-container {
  margin-top: 20px;
}

.support-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 10px;
}

/* Course & Content Sections */
.course-section,
.investment-section,
.free-training,
.testimonials-section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 193, 7, 0.1),
    transparent
  );
  transition: 0.5s;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-yellow);
}

h2 {
  font-size: 24px;
  color: var(--accent-yellow);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
  text-align: center;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-danger);
}

.card p {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 15px;
  font-size: 16px;
}

.course-image img {
  width: 100%;
  border-radius: 8px;
  margin: 15px 0;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.course-image img:hover {
  transform: scale(1.02);
}

.note {
  color: var(--accent-yellow-dark);
  font-size: 14px;
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

/* Video Sections */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Training Grid */
.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Testimonials */
.testimonials-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px 0;
  scrollbar-width: none; /* Firefox */
}

.testimonials-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
  min-width: 300px;
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 10px;
  scroll-snap-align: start;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 15px;
}

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

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.author-info h4 {
  margin: 0;
  color: var(--accent-yellow);
}

.author-info p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Progress Bar */
.progress-container {
  margin: 20px 0;
}

.progress-bar {
  height: 10px;
  background-color: var(--bg-lighter);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.progress-text {
  display: block;
  text-align: center;
  margin-top: 5px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Parallax Section */
.parallax-section {
  background-image: url("https://brazilniceguy.com.br/img/parallax.webp");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 30px 0;
}

.parallax-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 20px;
}

.parallax-content h2 {
  color: var(--accent-yellow);
  font-size: 32px;
  margin-bottom: 20px;
}

.parallax-content p {
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

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

.btn-pix {
  background: linear-gradient(135deg, #32bb71, #2cae66, #25a05a);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.btn-pix:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #2cae66, #25a05a, #1e934e);
}

/* Tooltip */
.tooltip {
  position: absolute;
  background-color: var(--bg-darker);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Bottom Navigation */
.app-nav {
  background-color: var(--bg-darker);
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 1px solid var(--border-color);
  z-index: 1000;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  font-size: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-link i {
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-yellow);
  transform: translateY(-3px);
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 20px;
  background-color: var(--bg-darker);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  position: relative;
  padding-bottom: 70px;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  color: var(--accent-yellow);
  transform: scale(1.1);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--success-green);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

.toast.show {
  opacity: 1;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.modal-close:hover {
  color: var(--accent-yellow);
  transform: scale(1.1);
}

.modal-qrcode {
  max-width: 300px;
  max-height: 300px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-text {
  color: var(--text-primary);
  margin-top: 15px;
  font-size: 16px;
}

.modal-pix-key {
  background-color: var(--bg-lighter);
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
  word-break: break-all;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-pix-key:hover {
  background-color: var(--accent-yellow-dark);
  color: var(--bg-dark);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .profile-header img {
    width: 140px;
    height: 140px;
  }

  h2 {
    font-size: 20px;
  }

  .menu-container {
    justify-content: flex-end;
    padding: 12px 15px;
  }

  .logo-container {
    left: 15px;
  }

  .logo-img {
    width: 30px;
    height: 30px;
  }

  .logo-text {
    font-size: 21px;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--bg-darker);
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .menu.active {
    display: flex;
  }

  .menu ul {
    flex-direction: column;
    gap: 5px;
    width: 100%;
  }

  .menu ul li {
    width: 100%;
  }

  .menu ul li a {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
    border-radius: 0;
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    flex-direction: column;
    gap: 15px;
  }

  .live-counter {
    flex-direction: column;
    gap: 15px;
  }

  .parallax-section {
    height: 300px;
  }

  .parallax-content h2 {
    font-size: 24px;
  }

  .ticker-item {
    padding: 6px 10px;
    font-size: 12px;
  }
}
