* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  padding-bottom: 70px;
  overflow-x: hidden;
  min-height: 100vh;
}

.wallpaper-bg {
  background: url('/WhatsApp Image 2026-03-16 at 00.38.36.jpeg') no-repeat center center fixed;
  background-size: cover !important;
}

/* Header */
.header {
  background: linear-gradient(135deg, #00a651 0%, #008c44 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 166, 81, 0.2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 28px;
  height: 28px;
  background: #00a651;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-bar-white {
  width: 100%;
  height: 4px;
  background: white;
}

.logo-bar-yellow {
  width: 100%;
  height: 4px;
  background: #ffcc00;
}

.logo-text {
  color: white;
  font-size: 14px;
  font-weight: 900;
  margin-top: 1px;
  line-height: 1;
  letter-spacing: -0.5px;
}

.brand-name {
  color: white;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  overflow: hidden;
}

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

/* Main Content */
.content {
  padding: 16px;
}

/* Wallet Card */
.wallet-card {
  background: white;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

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

.balance-section {
  flex: 1;
}

.balance-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.balance-value {
  font-size: 26px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.wallet-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s;
}

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

.btn-buy {
  background: #00a651;
  color: white;
}

.btn-sell {
  background: linear-gradient(135deg, #00a651 0%, #ffd23a 100%);
  color: #11341a;
  border: none;
}

.portfolio-chart {
  width: 52px;
  height: 52px;
}

/* Graph Section inside Card */
.card-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 12px -12px;
}

.graph-section {
  padding-top: 0;
}

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

.chart-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* BVMF Ticker (PETR4) */
.ticker-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  background: linear-gradient(90deg, rgba(11,59,36,0.95) 0%, rgba(0,92,44,0.96) 40%, rgba(0,68,31,0.96) 100%);
  border-radius: 0 0 16px 16px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.ticker-label {
  background: #ffcc00;
  color: #00441f;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.ticker-track {
  position: relative;
  overflow: hidden;
  flex: 1;
  height: 24px;
}

.ticker-item {
  position: absolute;
  white-space: nowrap;
  display: inline-block;
  color: #e5f9ed;
  font-size: 13px;
  font-weight: 600;
  left: 50%;
  transform: translateX(100%);
  animation: ticker-scroll 18s linear infinite;
}

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

.graph-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.graph-period {
  font-size: 13px;
  color: #00a651;
  font-weight: 500;
}

.chart-container {
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.graph-replacement-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Minhas Vantagens strip on home */
.advantages-strip-card {
  margin-top: 10px;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #00a651;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.advantages-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.advantages-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #00441f;
}

.advantages-progress-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adv-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  font-size: 11px;
}

.adv-icon.ok {
  border-color: #16a34a;
  background: #dcfce7;
  color: #166534;
}

.advantages-strip-button {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #00a651;
  color: #00a651;
  text-decoration: none;
  background: #f0fdf4;
}

/* Section */
.section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding: 0 4px;
}

/* Investment Cards Base */
.investment-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.investment-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.investment-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.investment-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.investment-profit {
  font-size: 15px;
  font-weight: 600;
  color: #00a651;
}

.investment-loss {
  color: #ef4444;
}

/* Premium Investment Cards Redesign */
.investment-card-premium {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.investment-card-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  z-index: 5;
  animation: shimmer-gold 4s infinite;
}

@keyframes shimmer-gold {
  0% { left: -100%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

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

.premium-header {
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Curved Wave Decoration */
.premium-header::after {
  content: '';
  position: absolute;
  bottom: -25px;
  right: -5%;
  width: 120%;
  height: 60px;
  background: var(--wave-color, rgba(255,255,255,0.2));
  border-radius: 50%;
  opacity: 0.6;
  z-index: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  z-index: 2;
}

.header-brand .brand-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-left: 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.premium-card-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.premium-visual-info {
  margin: 0 14px 8px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.card-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.3s ease;
}

.investment-card-premium:hover .card-feature-img {
  transform: scale(1.05);
}

/* Plan Specific Gradients and Wave Colors */
.plan-start { --wave-color: #ffd24d; }
.plan-start .premium-header { background: linear-gradient(135deg, #0c8a43 0%, #299e54 100%); }
.plan-start .btn-premium { background: #0c8a43; }

.plan-bronze { --wave-color: #ffd979; }
.plan-bronze .premium-header { background: linear-gradient(135deg, #a67c26 0%, #c9a041 100%); }
.plan-bronze .btn-premium { background: #a67c26; }

.plan-prata { --wave-color: #ffffff; }
.plan-prata .premium-header { background: linear-gradient(135deg, #8a9196 0%, #bdc6cc 100%); }
.plan-prata .btn-premium { background: #8a9196; }

.plan-ouro { --wave-color: #fff2ac; }
.plan-ouro .premium-header { background: linear-gradient(135deg, #d4af37 0%, #f9d71c 100%); }
.plan-ouro .btn-premium { background: #d4af37; }
.plan-ouro { border: 1px solid #f9d71c; }

.plan-diamante { --wave-color: #d1d5db; }
.plan-diamante .premium-header { background: linear-gradient(135deg, #4b5563 0%, #9ca3af 100%); }
.plan-diamante .btn-premium { background: #4b5563; }

.plan-platinum { --wave-color: #888888; }
.plan-platinum .premium-header { background: linear-gradient(135deg, #121212 0%, #333333 100%); }
.plan-platinum .btn-premium { background: #121212; }

.premium-body {
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.premium-body-left {
  flex: 1;
}

.premium-title {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.premium-yield {
  font-size: 14px;
  font-weight: 700;
  color: #0c8a43;
}

.premium-fixed-text {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  display: block;
}

.premium-body-right {
  text-align: right;
}

.premium-price-big {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.2px;
}

.premium-footer {
  padding: 0;
  display: flex;
  z-index: 1;
  width: 100%;
}

.btn-premium {
  width: 100%;
  padding: 12px;
  border-radius: 0;
  background: #0c8a43;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  text-align: center;
}

.btn-premium:active {
  transform: translateY(1px);
  box-shadow: none;
  opacity: 0.9;
}

/* News Cards */
.news-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

.news-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
}

.news-subtitle {
  font-size: 12px;
  color: #999;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #999;
  font-size: 11px;
  transition: color 0.2s;
  padding: 4px 12px;
}

.nav-item.active {
  color: #00a651;
}

.nav-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 24px;
  height: 24px;
}

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

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

.menu-arrow svg {
  width: 18px;
  height: 18px;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Page specific */
.page-content {
  padding: 16px;
  min-height: calc(100vh - 140px);
}

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

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

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

/* Investments Page */
.logo-card {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.highlight-name {
  font-weight: 800;
  font-size: 16px;
  color: #004a24;
}

.highlight-yield {
  font-size: 13px;
  color: #00a651;
  font-weight: 900;
  margin-top: 1px;
}

.daily-yield {
  font-size: 12px;
  color: #00a651;
  font-weight: 500;
  margin-top: 2px;
}

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

.product-price {
  font-size: 12px;
  color: #666;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
  flex: none;
}

.investment-product {
  flex-direction: column;
  align-items: stretch;
}

.product-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-tab {
  padding: 8px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active {
  background: #00a651;
  color: white;
  border-color: #00a651;
}

/* Profile Page */
.profile-header {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #00a651;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
}

.profile-name {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 14px;
  color: #999;
}

.menu-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #333;
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-icon {
  font-size: 20px;
  color: #00a651;
}

.menu-text {
  font-size: 15px;
  font-weight: 500;
}

.menu-arrow {
  font-size: 18px;
  color: #ccc;
}

/* Toast & PIX Notification */
.toast, .pix-notification {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  width: 92%;
  max-width: 360px;
}

.toast.show, .pix-notification.show {
  transform: translateX(-50%) translateY(0);
}

.pix-notification {
  background: white;
  color: #333;
  text-align: center;
  padding: 20px;
  border: 1px solid #eee;
}

.pix-notification h4 {
  margin-bottom: 12px;
  color: #00a651;
  font-size: 16px;
}

.pix-qr {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
}

.pix-qr img {
  width: 100%;
  height: 100%;
}

.pix-key-container {
  background: #f9f9f9;
  padding: 8px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 11px;
  word-break: break-all;
  margin-bottom: 12px;
  border: 1px dashed #ccc;
}

.pix-actions {
  display: flex;
  gap: 8px;
}

.pix-notification .btn-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  padding: 4px;
  cursor: pointer;
}

#pixKeyInput:focus, #withdrawAmountInput:focus {
  border-color: #00a651 !important;
  box-shadow: 0 0 0 2px rgba(0, 166, 81, 0.1);
}

/* Affiliates Enhanced UI */
.affiliate-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.affiliate-stat-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  transition: transform 0.2s;
}

.stat-badge {
  font-size: 9px;
  font-weight: 800;
  background: #00a651;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

.milestone-section {
  margin-top: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 12px;
  border: 1px solid #bcf1cc;
}

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.milestone-title {
  font-size: 14px;
  font-weight: 800;
  color: #166534;
}

.milestone-reward {
  font-size: 12px;
  color: #166534;
}

.milestone-description {
  font-size: 11px;
  color: #15803d;
  margin-bottom: 12px;
}

.milestone-medals-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.medal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
  opacity: 0.3;
  filter: grayscale(1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.medal-wrapper.active {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.1);
  animation: medal-pop 0.5s ease-out;
}

@keyframes medal-pop {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1.1); }
}

.medal-icon {
  width: 26px;
  height: 26px;
  background: #facc15;
  color: #854d0e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.medal-icon svg {
  width: 14px;
  height: 14px;
}

.medal-count {
  font-size: 10px;
  font-weight: 800;
  color: #166534;
}

.milestone-progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.milestone-status {
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  text-align: center;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 4px 0;
}

.action-btn {
  background: #fcfcfc;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px 4px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:active {
  transform: scale(0.96);
  background: #f5f5f5;
}

.action-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-icon svg {
  width: 12px;
  height: 12px;
}

.action-label {
  font-size: 8px;
  font-weight: 800;
  color: #555;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: -0.4px;
  line-height: 1;
  white-space: nowrap;
}

.amount-preset {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s;
}

.amount-preset:active, .amount-preset.selected {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}
</style>