*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #fff;
  transition: background-color 0.3s, color 0.3s;
}

header.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1e1e1e;
  padding: 1rem;
  border-bottom: 1px solid #333;
}

.topbar button {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  background-color: #1a1a1a;
  padding: 1rem;
  box-shadow: -2px 0 5px rgba(0,0,0,0.5);
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
  z-index: 100;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar ul li a {
  display: block;
  color: #fff;
  padding: 10px 0;
  text-decoration: none;
  transition: background 0.3s;
}
.sidebar ul li a:hover {
  background: #ff4444;
  padding-left: 10px;
  border-radius: 8px;
}

.sidebar .back {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #ff5555;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border: 2px solid #ff5555;
  border-radius: 12px;
  transition: 
    background-color 0.3s ease, 
    color 0.3s ease, 
    box-shadow 0.3s ease, 
    transform 0.2s ease;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 0 0 0 #ff5555;
}

.sidebar .back:hover {
  background-color: #e63946;
  color: #fff;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.7);
  transform: translateX(6px);
  text-decoration: none;
}

.sidebar.show {
  transform: translateX(0);
}

.content {
  padding: 2rem;
}

.back-link {
  display: inline-block;
  margin: 1rem 0 2rem 0;
  font-size: 1.3rem;
  color: #ff5555;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 18px;
  border: 2px solid #ff5555;
  border-radius: 12px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 0 0 0 #ff5555;
}

.back-link:hover {
  background-color: #e63946;
  color: #fff;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.7);
  transform: translateX(6px);
  text-decoration: none;
}

.highlight-card {
  display: flex;
  background: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
  transition: transform 0.3s;
}
.highlight-card:hover {
  transform: scale(1.03);
}
.highlight-card img {
  width: 120px;
  height: auto;
  object-fit: cover;
}
.highlight-card div {
  padding: 1rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #1e1e1e;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
}

.form-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #1f1f1f;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.15);
  width: 100%;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.9rem;
  color: #e63946;
  letter-spacing: 0.05em;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  border-radius: 10px;
  border: 2px solid #660000;
  background-color: #2a2a2a;
  color: #eee;
  box-shadow:
    inset 2px 2px 5px #1f1f1f,
    inset -2px -2px 5px #363636;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  resize: vertical;
  box-sizing: border-box;
}

form input::placeholder,
textarea::placeholder {
  color: #aa4a44;
  font-style: italic;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form select:focus,
textarea:focus {
  outline: none;
  border-color: #e63946;
  box-shadow:
    0 0 8px 3px rgba(230, 57, 70, 0.7),
    inset 2px 2px 6px #1f1f1f,
    inset -2px -2px 6px #363636;
  background-color: #330000;
  color: #fff;
}

form button,
input[type="submit"],
input[type="button"] {
  width: 100%;
  padding: 16px 0;
  background: linear-gradient(135deg, #e63946, #b92a2a);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow:
    0 6px 12px rgba(230, 57, 70, 0.6),
    0 3px 6px rgba(185, 42, 42, 0.7);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-sizing: border-box;
}

form button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: linear-gradient(135deg, #b92a2a, #7f1a1a);
  box-shadow:
    0 10px 20px rgba(185, 42, 42, 0.9),
    0 6px 12px rgba(143, 20, 20, 0.8);
  transform: translateY(-2px);
}

.form-links {
  text-align: center;
  margin-top: 1rem;
}

.form-links a {
  color: #ff5555;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 0 0 0 #ff5555;
  display: inline-block;
  user-select: none;
}

.form-links a:hover {
  color: #fff;
  background-color: #e63946;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.7);
  text-decoration: none;
  transform: translateY(-2px);
}

body.tema-claro {
  background-color: #f2f2f2;
  color: #000;
}
.tema-claro .menu, 
.tema-claro .highlight-card, 
.tema-claro .form-container {
  background-color: #fff;
  color: #000;
}
.tema-claro a {
  color: #000;
}

.botao-assinatura {
  display: block;
  width: 100%;
  padding: 16px 0;
  background: linear-gradient(135deg, #ff1e1e, #990000);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow:
    0 6px 12px rgba(255, 30, 30, 0.6),
    0 3px 6px rgba(153, 0, 0, 0.7);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-sizing: border-box;
  margin-top: 1rem;
}

.botao-assinatura:hover {
  background: linear-gradient(135deg, #cc0000, #660000);
  box-shadow:
    0 10px 20px rgba(255, 30, 30, 0.9),
    0 6px 12px rgba(100, 0, 0, 0.8);
  transform: translateY(-2px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-img {
  height: 100px;
  width: auto;
  max-width: 100%;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .logo-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-img {
    height: 80px;
  }

  .welcome-text {
    font-size: 1.5rem;
  }
}

.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.overlay.show {
  display: block;
}

.splash-screen {
  position: fixed;
  z-index: 9999;
  background-color: #000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-logo {
  width: 160px;
  height: auto;
  border-radius: 20px;
  animation: spinLogo 3s ease-in-out;
}

.splash-title {
  font-size: 2rem;
  margin-top: 1rem;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeText 3s ease-in-out;
}

@keyframes spinLogo {
  0% {
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: rotate(360deg) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: rotate(720deg) scale(1);
    opacity: 1;
  }
}

@keyframes fadeText {
  0% { 
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
  }
}

body.parceros-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #fff;
  margin: 0;
  padding: 20px;
}

.parceros-page h1, h3 {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

.parceros-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.parcero-card {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(246, 63, 63, 0.4);
  transition: transform 0.3s ease;
}

.parcero-card:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.instagram-link {
  font-size: 1.2rem;
  color: #f63f3f;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.instagram-link:hover {
  cursor: pointer;
}

.instagram-link i {
  font-size: 28px;
  color: #f63f3f;
}

.medals {
  margin-top: 12px;
  font-size: 1.6rem;
  user-select: none;
}

@media screen and (max-width: 480px) {
  .parcero-card {
    padding: 16px;
  }

  .instagram-link {
    font-size: 1rem;
  }

  .instagram-link i {
    font-size: 24px;
  }

  .medals {
    font-size: 1.3rem;
  }
}
