/* Withdraw Page Styles */
.withdraw-page {
  padding: 20px;
  background: #f5f5f5;
  min-height: 100vh;
}

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

.back-btn, .help-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.page-header h1 {
  font-size: 18px;
  font-weight: 600;
}

/* Header Escuro com Saldo - Formato Original */
.balance-card {
  background: #000;
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 2px;
  position: relative;
}

.balance-title {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.balance-amount-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.balance-amount {
  font-size: 24px;
  font-weight: 600;
}

.balance-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.last-rewards {
  background: #1a1a1a;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Header Escuro com Saldo - Novo Design */
.balance-header {
  background: #1a1a1a;
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 2px;
}

.balance-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.balance-header-left {
  flex: 1;
}

.balance-header-title {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.balance-header-amount {
  font-size: 32px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.balance-header-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 50%;
  flex-shrink: 0;
}

.balance-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Barra de Transações */
.transactions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  margin-top: 15px;
}

.transactions-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.transactions-arrow {
  color: rgba(255, 255, 255, 0.7);
  width: 20px;
  height: 20px;
}

/* Seção Branca Principal */
.withdraw-content {
  background: white;
  padding: 25px 20px 30px 20px;
  margin-top: 0;
  border-radius: 20px 20px 0 0;
  margin-bottom: 0;
}

.withdraw-section {
  margin-bottom: 30px;
}

.withdraw-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
}

/* Métodos de Pagamento */
.payment-methods-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.payment-method-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-method-logo {
  width: 40px;
  height: 28px;
  object-fit: contain;
}

.payment-method-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.payment-method-separator {
  font-size: 18px;
  color: #999;
  font-weight: 300;
}

.withdraw-section {
  margin-bottom: 30px;
}

/* Ajustes para o layout geral */
.withdraw-page {
  background: #f5f5f5;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
}

.pix-icon {
  height: 20px;
  vertical-align: middle;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 25px 0;
}

.amount-btn {
  background: #f0f0f0;
  border: 2px solid #e0e0e0;
  padding: 15px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  color: #333;
  font-size: 16px;
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
}

.amount-btn:hover {
  background: #e8e8e8;
  border-color: #d0d0d0;
}

.amount-btn.selected {
  border: 2px solid #ff2c55;
  background: rgba(255, 44, 85, 0.15);
  color: #d1003a;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255, 44, 85, 0.2);
}

.amount-btn.special-offer {
  border: 2px solid #ff2c55;
  background: rgba(255, 44, 85, 0.2);
  color: #d1003a;
  font-weight: 700;
}

.offer-badge {
  position: absolute;
  top: -6px;
  left: 6px;
  background: #ff2c55;
  color: white;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
  white-space: nowrap;
}

.amount-btn:active {
  transform: scale(0.97);
}

.pix-input {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.pix-type, .pix-key {
  padding: 17px 20px;
  border: 2px solid #d1d1d1; /* Borda cinza */
  border-radius: 10px;
  font-size: 16px;
  background-color: #f8f8f8; /* Fundo cinza claro */
  color: #4a4a4a; /* Texto cinza escuro */
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
}

/* Placeholder estilizado */
.pix-type::placeholder, .pix-key::placeholder {
  color: #8a8a8a; /* Cinza médio */
  opacity: 0.9;
}

/* Estados de foco */
.pix-type:focus, .pix-key:focus {
  border-color: #a8a8a8; /* Cinza mais escuro no foco */
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(168, 168, 168, 0.2);
}

/* Select personalizado */
.pix-type {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238a8a8a'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 20px;
  cursor: pointer;
  padding-right: 48px;
}

/* Botão mantido igual (destaque) */
.withdraw-submit-btn {
  width: 100%;
  background: #ff2c55;
  color: white;
  border: none;
  padding: 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin: 30px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 44, 85, 0.3);
  text-transform: none;
}

.withdraw-submit-btn:hover {
  background: #e0264a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 44, 85, 0.4);
}

.withdraw-submit-btn:active {
  transform: translateY(0);
}

.withdraw-info-text {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.withdraw-info-text p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 8px 0;
  text-align: center;
}

.invite-section {
  background: #ff2c55;
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin: 30px 0;
}

.invite-period {
  font-size: 14px;
  margin-bottom: 10px;
}

.reward-circles {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.reward-circle {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.reward-circle.active {
  background: #ffeb3b;
  color: black;
}

.invite-btn {
  width: 100%;
  background: #ffeb3b;
  color: black;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  margin: 20px 0;
  cursor: pointer;
}

.invite-code {
  text-align: center;
  font-size: 14px;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.help-text {
  text-align: center;
  margin: 30px 0;
}

.terms {
  font-size: 12px;
  color: #666;
  text-align: center;
}

css
/* Opção alternativa com borda inferior no hover */
.terms a {
  font-weight: bold;
  text-decoration: none;
  color: #333;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.terms a:hover {
  color: #ff2c55;
  border-bottom: 2px solid #ff2c55;
}

/* Ou com fundo destacado */
.terms a {
  font-weight: bold;
  text-decoration: none;
  color: #333;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.terms a:hover {
  color: #ff2c55;
  background: rgba(255, 44, 85, 0.1);
}

/* Loading Page Styles */
.loading-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  padding: 20px;
}

.loading-content {
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.loading-logo {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.loading-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0e0e0;
  border-top-color: #ff2c55;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Video Page Styles */
.video-page {
  text-align: center;
  padding: 20px;
}

.video-header {
  background: #ff2c55;
  color: white;
  padding: 10px;
  margin: -20px -20px 20px -20px;
  font-size: 14px;
  font-weight: 600;
}

.balance-display {
  display: inline-block;
  background: #f5f5f5;
  padding: 8px 15px;
  border-radius: 20px;
  margin-bottom: 30px;
}

.video-instruction {
  color: #666;
  margin: 15px 0;
}

.video-container {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

#tutorial-video {
  width: 100%;
  aspect-ratio: 9/16;
  background: #000;
}

.unlock-btn {
  width: 100%;
  background: #ff2c55;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

/* Métodos de Saque */
.add-method-btn {
  width: 100%;
  background: #ff2c55;
  color: white;
  border: none;
  padding: 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin: 25px 0 20px 0;
  transition: all 0.3s ease;
  text-transform: capitalize;
  box-shadow: 0 4px 8px rgba(255, 44, 85, 0.3);
}

.add-method-btn:hover {
  background: #e0264a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 44, 85, 0.4);
}

.add-method-btn:active {
  transform: translateY(0);
}

.selected-method-display {
  background: #f8f8f8;
  border: 2px solid #d1d1d1;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
}

.method-display-item {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}

.method-logo {
  display: flex;
  align-items: center;
}

.method-name {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.method-subtitle {
  font-size: 14px;
  color: #666;
  margin-top: 2px;
}

.change-method-btn {
  background: none;
  border: none;
  color: #ff2c55;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

/* Modal de Métodos */
.method-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.method-modal-content {
  background: white;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: modalFadeIn 0.3s;
}

.method-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.method-modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.method-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-modal-close:hover {
  color: #333;
}

.method-options {
  padding: 10px;
}

.method-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 10px;
}

.method-option:hover {
  background: #f5f5f5;
}

.method-option-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.method-option-text {
  flex: 1;
}

.method-option-name {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 2px;
}

.method-option-subtitle {
  font-size: 14px;
  color: #666;
}

/* Formulários de Métodos */
.method-form {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.method-form h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #d1d1d1;
  border-radius: 10px;
  font-size: 16px;
  background: white;
  color: #4a4a4a;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #ff2c55;
  box-shadow: 0 0 0 3px rgba(255, 44, 85, 0.1);
}

.form-input[readonly] {
  background: #f0f0f0;
  color: #666;
  cursor: not-allowed;
}

.form-submit-btn {
  width: 100%;
  background: #ff2c55;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  background: #e0264a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 44, 85, 0.3);
}

/* Phone Input with Country Code */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #d1d1d1;
  border-radius: 10px;
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
  border-color: #ff2c55;
  box-shadow: 0 0 0 3px rgba(255, 44, 85, 0.1);
}

.country-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 15px 12px;
  background: #f8f8f8;
  border-right: 2px solid #d1d1d1;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.country-code .flag {
  font-size: 20px;
  line-height: 1;
}

.country-code .code {
  font-size: 16px;
}

.phone-input {
  flex: 1;
  border: none;
  padding: 15px 20px;
  font-size: 16px;
  background: white;
  outline: none;
}

.phone-input:focus {
  border: none;
  box-shadow: none;
}