* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  min-height: 100%;
  background-color: #f0f2f5;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 24px;
  background-color: white;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
  top: 0;
  z-index: 10;
}

.logo img {
  height: 53px;
}

.balance {
  background-color: #0054d2;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
}

.welcome-modal .modal-content {
  max-width: 500px;
  border-radius: 30px;
  overflow: visible;
}

.welcome-modal .modal-header {
  background: linear-gradient(135deg, #0046b0, #0054d2);
  padding: 50px 0 70px;
  clip-path: ellipse(120% 100% at 50% 0%);
}

.welcome-modal .check-icon-container {
  width: 100px;
  height: 100px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(106, 72, 255, 0.3);
  margin-top: -20px;
}

.welcome-modal .check-icon {
  width: 60px;
  height: 60px;
  color: #0046b0;
}

.welcome-modal .modal-title {
  font-size: 39px;
  margin-top: 15px;
  letter-spacing: -0.5px;
}

.welcome-modal .modal-body {
  padding: 40px 30px;
  margin-top: -30px;
}

.welcome-modal .earned-value {
  font-size: 42px;
  color: #2e2e2e;
  position: relative;
  display: inline-block;
  margin: 6px 0;
}

.content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 26px;
}

.loading-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: fadeIn 0.3s ease;
}

.loading-dots {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ccc;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #0054d2;
}

.loading-text {
  color: #666;
  font-size: 24px;
  font-weight: 500;
}

.stock-card {
  background-color: #1C1C1E;
  color: white;
  margin: 20px 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.5s ease;
  transition: transform 0.3s ease;
}

.stock-info {
  padding: 24px;
}

.stock-ticker {
  font-size: 40px;
  font-weight: bold;
  letter-spacing: -0.5px;
}

.stock-name {
  font-size: 18px;
  opacity: 0.8;
  color: #c6c6c6;
  margin-top: 4px;
}

.chart-container {
  padding: 0 16px 16px;
}

.chart-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.question {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  padding: 16px 0 24px;
  animation: fadeIn 0.5s ease;
}

.company-name {
  color: #0054d2;
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  padding: 0 0 32px;
  gap: 16px;
}

.btn {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon {
  flex-shrink: 0;
  fill: white;
}

.btn-buy {
  background-color: #00a344;
}

.btn-buy:hover {
  background-color: #008a3a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 163, 68, 0.3);
}

.btn-not-buy {
  background-color: #e74c3c;
}

.btn-not-buy:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn:active {
  transform: translateY(1px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.799);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  border-radius: 24px;
  width: 83%;
  max-width: 400px;
  overflow: hidden;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateZ(0);
}

.modal-header {
  background: linear-gradient(135deg, #0054d2, #0046b0);
  padding: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.check-icon-container {
  width: 72px;
  height: 72px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  animation: scaleIn 0.5s ease;
}

.check-icon {
  color: #0054d2;
  animation: checkmark 0.5s ease-in-out;
  transform-origin: center;
}

.modal-title {
  color: white;
  font-size: 40px;
  margin: 0;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-body {
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.earned-label {
  font-size: 24px;
  margin: 0 0 16px;
  color: #333;
  opacity: 0.9;
}

.earned-value {
  font-size: 56px;
  font-weight: bold;
  color: #0054d2;
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 84, 210, 0.2);
}

.modal-footer {
  padding: 0 24px 24px;
  background: linear-gradient(to top, #f8f9fa, #fff);
}

.continue-button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 27px;
  background: linear-gradient(135deg, #0054d2, #0046b0);
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.continue-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 84, 210, 0.3);
}

.continue-button:active {
  transform: translateY(1px);
}

.completion-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.5s ease;
}

.completion-title {
  font-size: 52px;
  color: #0054d2;
  margin-bottom: 30px;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.completion-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background-color: #0054d2;
}

.completion-text {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 25px;
  color: #333;
  max-width: 90%;
  text-align: start;
  font-weight: 600;
}

.completion-reward {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 40px;
  color: #333;
  max-width: 90%;
  text-align: start;
  font-weight: 600;
}

.total-balance-heading {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #222;
}

.total-balance {
  font-size: 68px;
  font-weight: bold;
  color: #0054d2;
  margin-bottom: 20px;
}

.pix-button {
  background-color: #0054d2;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 16px 32px;
  border: none;
  border-radius: 35px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 84, 210, 0.3);
}

.pix-button:hover {
  background-color: #0046b0;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 84, 210, 0.4);
}

.pix-button:active {
  transform: translateY(1px);
}

.pix-registration {
  text-align: center;
  margin-top: 20px;
}

.pix-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #222;
}

.pix-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

.option-btn {
  padding: 10px 20px;
  margin: 0 5px;
  border: 2px solid #3b3b3b;
  background: white;
  color: #3b3b3b;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s, color 0.3s;
}

.option-btn.selected {
  border: 2px solid #0054d2;
  background: #d3e4ff;
  color: #0054d2;
}

.pix-input {
  display: block;
  width: 90%;
  max-width: 300px;
  margin: 20px auto;
  padding: 14px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
}

.submit-btn {
  display: block;
  width: 90%;
  max-width: 300px;
  margin: 20px auto;
  padding: 14px;
  border: none;
  background: #0054d2;
  color: white;
  border-radius: 10px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s, background 0.3s;
}

.submit-btn:enabled {
  opacity: 1;
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0054d2;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.pix-info-box {
  margin-top: 30px;
  background: #f8f8f8;
  padding: 20px;
  border-radius: 15px;
  font-size: 15px;
  color: #333;
  text-align: left;
  width: 90%;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

.pix-info-box p {
  margin-bottom: 1rem;
}

.pix-success-modal .modal-content {
  background: white;
  border-radius: 24px;
  width: 90%;
  max-width: 400px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.4s ease;
}

.pix-success-modal .modal-header {
  background: none;
  padding: 0;
  margin-bottom: 20px;
}

.pix-success-modal .check-icon-container {
  width: 80px;
  height: 80px;
  background-color: #0054d2;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-success-modal .check-icon-container svg {
  color: white;
}

.pix-success-modal .modal-title {
  font-size: 29px;
  font-weight: bold;
  color: #000;
  margin-bottom: 10px;
}

.pix-success-modal .modal-title span {
  color: #0054d2;
}

.pix-success-modal .modal-body {
  margin-top: 15px;
}

.pix-success-modal .spinner {
  border: 4px solid #ccc;
  border-top: 4px solid #0054d2;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.pix-success-modal .loading-text {
  font-weight: 600;
  font-size: 18px;
  color: #333;
}

.exchange-center {
  max-width: 500px;
  margin: 30px auto;
  text-align: center;
}

.exchange-center h2 {
  font-size: 24px;
  font-weight: bold;
  color: #222;
  margin-bottom: 20px;
}

.exchange-center h2 span {
  color: #0054d2;
}

.exchange-center h3 {
  font-size: 26px;
  color: #0054d2;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.exchange-rate-box {
  background: #0054d2;
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 20px;
}

.exchange-rate-box .rate {
  font-size: 30px;
  font-weight: bold;
  margin: 10px 0;
}

.exchange-rate-box .updated-time {
  font-size: 14px;
}

.balance-box {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.balance-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-info img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.balance-info-text {
  text-align: left;
}

.balance-info-text .label {
  font-size: 14px;
  color: #555;
}

.balance-info-text .amount {
  font-size: 24px;
  font-weight: bold;
}

.balance-currency {
  background: #e0e0e0;
  color: #0046b0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

#startConversionBtn {
  width: 100%;
  background: #0054d2;
  color: white;
  padding: 16px;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#startConversionBtn:disabled {
  background: #7d7d7d;
  cursor: not-allowed;
}

.balance-box-converted {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.balance-box-converted .balance-currency {
  background: #d8ffea;
  color: #019210;
  font-size: 14px;
}

.balance-box-converted .amount {
  color: #019210;
}


#withdrawBtn {
  width: 100%;
  background: #019210;
  color: white;
  padding: 16px;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-rotate {
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


@media (max-width: 576px) {
  .completion-title {
    font-size: 42px;
  }

  .completion-text,
  .completion-reward {
    font-size: 18px;
  }

  .total-balance-heading {
    font-size: 24px;
  }

  .total-balance {
    font-size: 56px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkmark {
  from {
    transform: scale(0) rotate(-45deg);
  }

  to {
    transform: scale(1) rotate(0);
  }
}

@media (max-width: 576px) {
  .header {
    padding: 12px 16px;
  }

  .stock-card {
    margin: 22px 0;
  }

  .stock-info {
    padding: 16px;
  }

  .stock-ticker {
    font-size: 32px;
  }

  .stock-name {
    font-size: 16px;
  }

  .action-buttons {
    padding: 0 0 24px;
  }

  .btn {
    padding: 14px 10px;
    font-size: 18px;
  }

  .modal-header {
    padding: 36px 0;
  }

  .modal-title {
    font-size: 39px;
  }

  .earned-label {
    font-size: 20px;
  }

  .earned-value {
    font-size: 49px;
  }
}