: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;
}

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

/* 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: brightness(0.9) sepia(1) hue-rotate(10deg) saturate(3);
  animation: fall 5s linear infinite;
}

@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;
}

.logo-text {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 21px;
}

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

.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: linear-gradient(
    135deg,
    var(--accent-red),
    var(--accent-red-dark)
  );
  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;
}

.menu ul li a:hover {
  background: linear-gradient(
    135deg,
    var(--accent-red-dark),
    var(--accent-red)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

.profile-card {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}

.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);
}

.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;
}

.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;
}

.social-link:hover {
  background-color: var(--bg-lighter);
  transform: translateY(-3px);
}

.social-link img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.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 {
  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;
}

.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: linear-gradient(
    to right,
    var(--accent-red),
    var(--accent-yellow)
  );
}

.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;
}

.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;
}

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

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

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

.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;
}

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

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

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

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

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

  to {
    transform: translateX(-100%);
  }
}

/* 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;
}

.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);
}

/* 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;
}

/* 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);
  }

  .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;
  }
}

/* Telegram Groups Page Specific Styles */
.telegram-section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.telegram-group {
  text-align: center;
  transition: transform 0.3s ease;
}

.telegram-group:hover {
  transform: translateY(-10px);
}

.group-header {
  margin-bottom: 15px;
}

.group-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.group-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.group-features li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.group-features i {
  color: var(--accent-yellow);
  margin-right: 8px;
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc, #006699);
  color: white;
  margin-top: 15px;
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #006699, #004466);
}

.cta-section {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .telegram-group {
    margin-bottom: 20px;
  }

  .group-features {
    text-align: center;
  }
}

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