* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background: #f5f5f5;
  overflow-x: hidden;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
  padding-bottom: 70px;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

.top-bar-icon {
  pointer-events: auto;
}

.top-bar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #333;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.top-bar-icon:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.top-bar-icon svg {
  width: 20px;
  height: 20px;
}

.header-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  position: relative;
  margin-top: 0;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marquee-container {
  background: #32BCAD;
  color: white;
  overflow: hidden;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
}

.marquee {
  display: flex;
  animation: scroll 20s linear infinite;
  white-space: nowrap;
}

.marquee span {
  padding-right: 100%;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cards-row {
  display: flex;
  gap: 10px;
  padding: 16px;
}

.balance-card {
  flex: 1;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
}

.card-label {
  font-size: 11px;
  color: #666;
  margin-bottom: 6px;
}

.card-value {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.action-buttons {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}

.btn-action {
  flex: 1;
  border: none;
  height: 36px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-deposit {
  background: #32BCAD;
  color: white;
}

.btn-withdraw {
  background: #FFE600;
  color: #333;
}

.btn-action:active {
  transform: scale(0.98);
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px 8px;
  color: #333;
}

.packages-list {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.package-card:active {
  transform: scale(0.98);
}

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

.package-name {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.package-value {
  font-size: 16px;
  font-weight: 700;
  color: #32BCAD;
}

.package-benefits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.benefit-item {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.benefit-icon {
  color: #32BCAD;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  display: block;
}

.package-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.package-total {
  font-size: 11px;
  color: #666;
}

.package-total-value {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.btn-buy {
  background: #32BCAD;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 4px;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #999;
  flex: 1;
  padding: 4px;
  transition: all 0.2s;
}

.nav-item.active {
  color: #32BCAD;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.nav-icon svg {
  display: block;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
}

.page-header {
  background: #32BCAD;
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
}

.page-content {
  padding: 16px;
}

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

.form-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  display: block;
}

.form-input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'Noto Sans', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: #32BCAD;
}

.btn-primary {
  width: 100%;
  background: #32BCAD;
  color: white;
  border: none;
  height: 44px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.btn-primary:active {
  transform: scale(0.98);
}

.info-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
}

.info-label {
  color: #666;
}

.info-value {
  color: #333;
  font-weight: 600;
}

.transaction-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 10px;
}

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

.transaction-type {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.transaction-value {
  font-size: 15px;
  font-weight: 700;
}

.transaction-value.positive {
  color: #32BCAD;
}

.transaction-value.negative {
  color: #ff5252;
}

.transaction-date {
  font-size: 11px;
  color: #999;
}

.transaction-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-top: 6px;
}

.transaction-status.completed {
  background: #e8f5e9;
  color: #2e7d32;
}

.transaction-status.pending {
  background: #fff3e0;
  color: #f57c00;
}

.my-package-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 10px;
}

.package-progress {
  background: #f0f0f0;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0;
}

.package-progress-bar {
  background: #32BCAD;
  height: 100%;
  transition: width 0.3s;
}

.affiliate-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #32BCAD;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: #666;
}

.referral-link {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.referral-code {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-copy {
  background: #32BCAD;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-icon {
  margin-bottom: 12px;
  color: #ccc;
  display: flex;
  justify-content: center;
}

.empty-icon svg {
  display: block;
}

.empty-text {
  font-size: 14px;
}

.auth-content {
  padding: 32px 24px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
  text-align: center;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #666;
}

.auth-footer a {
  color: #32BCAD;
  text-decoration: none;
  font-weight: 600;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f0f0;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 8px;
  border: 1px solid #e0e0e0;
}

.captcha-text {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #333;
  flex: 1;
  user-select: none;
}

.btn-refresh {
  background: white;
  border: 1px solid #e0e0e0;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.btn-refresh:hover {
  background: #f5f5f5;
}

.btn-refresh:active {
  transform: scale(0.95);
}

/* Bootstrap Toast Customization */
.toast-container {
  max-width: 350px;
}

.toast {
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header {
  font-weight: 600;
}

.toast-body {
  font-size: 14px;
  color: #333;
}

.toast-body strong {
  color: #32BCAD;
  font-weight: 600;
}

/* Ícones SVG nos toasts */
.toast-header svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}