@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --primary: #000;
  --bg: #fff;
  --bg-secondary: #f6f6f6;
  --text-primary: #000;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --accent: #d4af37;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mobile-app {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Main Content */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 80px;
  background: var(--bg-secondary);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Banner */
.hero-banner {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.hero-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #10b981;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Quick Stats */
.quick-stats {
  display: flex;
  padding: 24px 20px;
  background: var(--bg);
  gap: 24px;
}

.stat-item {
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px 12px;
  background: var(--bg-secondary);
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.see-all {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Cards Carousel */
.cards-carousel {
  display: flex;
  gap: 16px;
  padding: 12px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--bg-secondary);
}

.cards-carousel::-webkit-scrollbar {
  display: none;
}

.investment-card-new {
  flex: 0 0 280px;
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
  scroll-snap-align: start;
  position: relative;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.investment-card-new.featured {
  border: 2px solid var(--primary);
}

.featured-tag {
  position: absolute;
  top: -8px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

.card-badge {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.gold .card-badge {
  background: var(--accent);
  color: #fff;
}

.platinum .card-badge {
  background: var(--primary);
  color: #fff;
}

.card-percent {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.card-price {
  margin-bottom: 20px;
}

.currency {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 600;
}

.amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.card-features {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.card-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-secondary);
}

.benefit-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 8px;
}

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

.benefit-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.benefit-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* CTA Banner */
.cta-banner {
  margin: 20px 20px;
  background: var(--primary);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.cta-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.cta-button {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  min-height: 60vh;
  background: var(--bg);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-icon svg {
  width: 100%;
  height: 100%;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Profile Section */
.profile-section {
  padding: 24px 20px;
  background: var(--bg);
}

.profile-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-circle svg {
  width: 40px;
  height: 40px;
}

.profile-section h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.profile-menu {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background: var(--bg-secondary);
}

.menu-icon {
  width: 40px;
  height: 40px;
  margin-right: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.menu-text {
  flex: 1;
}

.menu-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.menu-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.menu-arrow {
  color: var(--text-secondary);
}

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

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--primary);
}

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

.nav-item span {
  font-size: 11px;
  font-weight: 600;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-end;
}

.modal.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
  padding: 0;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto;
}

.sheet-content {
  padding: 0 24px 32px;
}

.sheet-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: -0.5px;
}

.modal-plan {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.plan-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}

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

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg);
}

.confirm-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
}

.cancel-btn {
  width: 100%;
  padding: 16px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Success Modal */
.modal-sheet.success {
  border-radius: 16px;
  max-height: none;
  padding: 40px 24px;
}

.success-animation {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.success-animation svg {
  width: 80px;
  height: 80px;
}

.checkmark {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.5s ease forwards 0.3s;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.modal-sheet.success h2 {
  margin-bottom: 12px;
}

.modal-sheet.success p {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  text-align: center;
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg);
  z-index: 200;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.side-menu.active {
  left: 0;
}

.side-menu-header {
  padding: 40px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.menu-avatar {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-avatar svg {
  width: 32px;
  height: 32px;
}

.side-menu-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.side-menu-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.menu-list {
  padding: 8px 0;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s;
}

.menu-link:active,
.menu-link.active {
  background: var(--bg-secondary);
}

.menu-link svg {
  width: 24px;
  height: 24px;
  margin-right: 16px;
}

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

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  background: var(--bg);
}

.action-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.action-btn svg {
  width: 20px;
  height: 20px;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, #333 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn.secondary {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

/* Page Container */
.page-container {
  padding: 20px;
  background: var(--bg);
  min-height: 100vh;
}

/* Balance Card */
.balance-card {
  background: linear-gradient(135deg, var(--primary) 0%, #333 100%);
  color: #fff;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.balance-label {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.balance-amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}

/* Section Title */
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

/* Amount Grid */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.amount-option {
  padding: 16px;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.amount-option.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.amount-option:active {
  transform: scale(0.95);
}

/* Input with Prefix */
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-prefix .prefix {
  position: absolute;
  left: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-with-prefix input {
  padding-left: 48px;
}

.input-helper {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Payment Method */
.payment-method {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.method-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.method-header svg {
  width: 24px;
  height: 24px;
}

.method-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: 36px;
}

/* Primary Action Button */
.primary-action-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* PIX Modal Styles */
.pix-amount {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qr-placeholder svg {
  width: 100%;
  height: 100%;
}

.pix-code-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.pix-code-container input {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: monospace;
}

.copy-btn {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.copy-btn svg {
  width: 20px;
  height: 20px;
}

.pix-info {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pix-info svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Withdraw Info */
.withdraw-info {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

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

.info-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.info-row .highlight {
  font-weight: 700;
  color: var(--primary);
}

.withdraw-note {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.withdraw-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Portfolio Summary */
.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.summary-item {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.summary-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.summary-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.summary-value.green {
  color: #10b981;
}

/* Investment List */
.investment-list {
  margin-bottom: 32px;
}

.investment-item {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.investment-badge {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.gold-badge {
  background: var(--accent);
  color: #fff;
}

.investment-details {
  flex: 1;
}

.investment-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.investment-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.investment-value {
  text-align: right;
}

.value-amount {
  font-weight: 700;
  margin-bottom: 4px;
}

.value-return {
  font-size: 13px;
  font-weight: 600;
}

/* Returns List */
.returns-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.return-item {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.return-icon {
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.return-details {
  flex: 1;
}

.return-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.return-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.return-amount {
  font-weight: 700;
  font-size: 16px;
}

.return-amount.green {
  color: #10b981;
}

/* Affiliate Styles */
.affiliate-hero {
  text-align: center;
  padding: 24px 0;
  margin-bottom: 24px;
}

.affiliate-hero h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.affiliate-hero p {
  color: var(--text-secondary);
  font-size: 15px;
}

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

.stat-box {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.referral-code-container {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.referral-code-container input {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.share-btn svg {
  width: 20px;
  height: 20px;
}

.share-btn.whatsapp {
  background: #25d366;
  color: #fff;
}

.share-btn.telegram {
  background: #0088cc;
  color: #fff;
}

.how-it-works {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Check-in Styles */
.checkin-hero {
  text-align: center;
  padding: 24px 0;
  margin-bottom: 24px;
}

.checkin-hero h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.checkin-hero p {
  color: var(--text-secondary);
  font-size: 15px;
}

.streak-card {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

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

.streak-icon svg {
  width: 32px;
  height: 32px;
}

.streak-number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.streak-label {
  font-size: 14px;
  opacity: 0.9;
}

.checkin-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.day-item {
  aspect-ratio: 1;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
}

.day-item.checked {
  background: #10b981;
  color: #fff;
}

.day-item.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.day-number {
  font-size: 16px;
  font-weight: 700;
}

.day-reward {
  font-size: 11px;
  font-weight: 600;
}

.day-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
}

.day-check svg {
  width: 100%;
  height: 100%;
}

.checkin-note {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.checkin-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Profile Styles */
.profile-header {
  text-align: center;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-large svg {
  width: 50px;
  height: 50px;
}

.profile-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.profile-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.logout-btn {
  width: 100%;
  padding: 16px;
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
}

select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg);
}

/* Product Cards */
.product-card {
  flex: 0 0 300px;
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.product-card.featured {
  border: 2px solid var(--primary);
}

.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.product-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.product-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-stats .stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.product-stats .stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

.modal-product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: center;
}

/* Product Investment Items */
.product-investment-item {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.product-investment-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.investment-quantity {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Opening Animation */
.opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--primary);
  animation: slideDoor 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.door-left {
  left: 0;
  animation-name: slideLeft;
}

.door-right {
  right: 0;
  animation-name: slideRight;
}

.opening-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 4px;
  animation: fadeOutText 1.5s ease forwards;
  z-index: 10000;
}

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

@keyframes slideRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@keyframes fadeOutText {
  0%, 60% { opacity: 1; }
  100% { opacity: 0; }
}

/* Auth Pages */
.auth-page {
  padding: 0;
  background: var(--bg);
}

.auth-hero {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

.auth-container h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.auth-form {
  margin-bottom: 24px;
}

.forgot-password {
  display: block;
  text-align: right;
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 24px;
  font-weight: 500;
}

.auth-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.auth-footer p {
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}