/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden; /* Hide browser scrollbar */
}

body {
  font-family: "Arial", sans-serif;
  background-color: #000000; /* Black background outside the container */
  color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Telegram / iOS safe-area insets (set by js/telegram.js, fall back to env()) */
:root {
  --tg-safe-top: 0px;
  --tg-safe-bottom: 0px;
  --tg-safe-left: 0px;
  --tg-safe-right: 0px;
  --safe-top: max(var(--tg-safe-top), env(safe-area-inset-top, 0px));
  --safe-bottom: max(var(--tg-safe-bottom), env(safe-area-inset-bottom, 0px));
}

.site-container {
  width: 100%;
  max-width: 450px; /* Phone-width frame, but never wider than the screen */
  height: 100vh; /* Full viewport height */
  height: 100dvh; /* Track the dynamic viewport inside Telegram/mobile */
  overflow-y: auto; /* This is the only scrollbar */
  background-color: #000000;
  position: relative;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.site-wrapper {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #0d0d0d; /* Dark background inside the container */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Subtle shadow to distinguish from white background */
  /* Top padding clears the Telegram header / iOS status bar; bottom clears nav + home indicator */
  padding-top: var(--safe-top);
  padding-bottom: calc(70px + var(--safe-bottom)); /* Space for bottom nav */
  position: relative; /* For absolute positioning of children */
}

.container {
  width: 100%;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* Header Styles */
header {
  background-color: #0d0d0d;
  padding: 15px 0 10px;
}

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

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

.logo-icon {
  background-color: #ff7a1a;
  color: #000;
  font-weight: bold;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  margin-right: 10px;
}

.logo-text {
  font-weight: bold;
  font-size: 18px;
}

.notification-bar {
  background-color: #242424;
  border-radius: 20px;
  padding: 8px 15px;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.notification-icon {
  color: #ff7a1a;
  margin-right: 10px;
  z-index: 2;
  flex-shrink: 0;
}

.notification-wrapper {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
}

.notification-text {
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  animation: moveNotification 20s linear infinite;
}

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

.header-right {
  display: flex;
  gap: 10px;
}

.btn-app,
.btn-language {
  background-color: #242424;
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
}

/* Main Content */
main {
  padding-bottom: 15px;
}

/* Banner */
.banner {
  background: linear-gradient(135deg, #ff7a1a 0%, #e85d04 60%, #b34700 100%);
  border-radius: 14px;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
  box-shadow: 0 10px 30px rgba(255, 122, 26, 0.25);
  position: relative;
  overflow: hidden;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -20%, rgba(255, 255, 255, 0.25), transparent 60%);
  pointer-events: none;
}

.cognex-logo {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #000;
  position: relative;
  z-index: 1;
}

/* Dashboard */
.dashboard {
  margin-bottom: 15px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.dashboard-card {
  background: linear-gradient(to right, #0d0d0d, #242424);
  border-radius: 10px;
  padding: 15px;
}

.dashboard-card h3 {
  color: #a8a8a8;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: normal;
}

.amount {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
}

.amount-usd {
  font-size: 12px;
  color: #a8a8a8;
}

/* Telegram banner */
.telegram-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #171717;
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 15px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.telegram-banner:hover {
  border-color: #ff7a1a;
  transform: translateY(-1px);
}

.telegram-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ff7a1a, #e85d04);
  color: #000;
}

.telegram-text {
  flex-grow: 1;
  color: #ededed;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.telegram-arrow {
  flex-shrink: 0;
  color: #ff7a1a;
  font-size: 13px;
}

/* Features */
.features {
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 1px solid rgba(255, 122, 26, 0.3);
  color: #ff7a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 17px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-item:hover .feature-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 122, 26, 0.25);
}

.feature-item span {
  font-size: 12px;
}

/* Activity Section */
.activity-section {
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

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

.section-header h2 {
  font-size: 16px;
}

.more-link {
  color: #7a7a7a;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.more-link i {
  font-size: 10px;
  margin-left: 4px;
}

.activity-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.activity-item:last-child {
  margin-bottom: 0;
}

.activity-icon {
  background-color: #ff7a1a;
  color: #000;
  font-weight: bold;
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 18px;
}

.activity-content h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.activity-content p {
  font-size: 12px;
  color: #a8a8a8;
}

/* Activity Detail Page */
.activity-header {
  background-color: #000000;
  padding: 15px 0;
}

.activity-header-content {
  display: flex;
  align-items: center;
  position: relative;
}

.back-button {
  font-size: 18px;
  color: #ffffff;
  margin-right: 15px;
}

.activity-header-content h1 {
  font-size: 18px;
  font-weight: normal;
  flex-grow: 1;
  text-align: center;
  margin-right: 30px; /* Balance the back button */
}

.activity-list {
  padding: 15px 0;
}

.activity-detail-item {
  display: flex;
  background-color: #171717;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  gap: 15px;
}

.activity-detail-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #ffffff;
}

.activity-detail-content p {
  font-size: 14px;
  color: #a8a8a8;
  line-height: 1.5;
}

/* Video Section */
.video-section {
  background-color: #242424;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.video-container {
  position: relative;
}

.video-container img {
  width: 100%;
  display: block;
  height: auto;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, rgba(0, 194, 255, 0.2), transparent);
  color: #ff7a1a;
  font-size: 28px;
  font-weight: bold;
}

.video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 25%;
  background-color: #ff7a1a;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.video-controls-left,
.video-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-controls button {
  background: transparent;
  color: #fff;
  font-size: 12px;
}

/* Withdrawal Section */
.withdrawal-section {
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.withdrawal-section h2 {
  font-size: 16px;
  margin-bottom: 15px;
}

.withdrawal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.withdrawal-item {
  display: flex;
  justify-content: space-between;
}

.withdrawal-email {
  color: #a8a8a8;
  font-size: 12px;
}

/* Quotes Section */
.quotes-section {
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.quotes-section h2 {
  font-size: 16px;
  margin-bottom: 15px;
}

/* About Us */
.about-section {
  background-color: #171717;
  border: 1px solid rgba(255, 122, 26, 0.3);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 15px;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2a2a2a;
}

.about-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ff7a1a, #e85d04);
  color: #000;
  font-size: 19px;
}

.about-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.about-dateline {
  font-size: 12px;
  color: #ff9a4d;
  font-weight: 600;
}

.about-body p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #c4c4c4;
  margin: 0 0 14px;
}

.about-body strong {
  color: #ff9a4d;
}

.about-quote {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid #ff7a1a;
  border-radius: 0 10px 10px 0;
  background: rgba(255, 122, 26, 0.08);
  font-size: 13px;
  line-height: 1.6;
  color: #ededed;
  font-style: italic;
}

.about-cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  color: #ff7a1a;
  font-size: 12.5px;
}

/* Live indicator */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #f44336;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.live-text {
  color: #f44336;
  font-size: 12px;
  font-weight: bold;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.crypto-section {
  margin-bottom: 15px;
  position: relative;
}

.crypto-section:last-child {
  margin-bottom: 0;
}

.crypto-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.crypto-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.crypto-icon.btc {
  background-color: #ff7a1a;
}

.crypto-icon.eth {
  background-color: #627eea;
}

.crypto-name {
  font-weight: bold;
  margin-right: 4px;
}

.crypto-pair {
  color: #7a7a7a;
  font-size: 12px;
}

.exchange-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exchange-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exchange-name {
  display: flex;
  align-items: center;
}

.exchange-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 10px;
}

.exchange-icon.binance {
  color: #ff7a1a;
}

.exchange-icon.okx {
  color: #fff;
}

.exchange-icon.huobi {
  color: #e85d04;
}

.exchange-icon.coinbase {
  color: #0052ff;
}

.price {
  font-size: 12px;
  transition: color 0.2s ease;
}

.price.up {
  color: #4caf50;
}

.price.down {
  color: #f44336;
}

/* Price flash animations */
.flash-green {
  animation: flashGreen 0.5s;
}

.flash-red {
  animation: flashRed 0.5s;
}

@keyframes flashGreen {
  0% {
    background-color: rgba(76, 175, 80, 0.3);
  }
  100% {
    background-color: transparent;
  }
}

@keyframes flashRed {
  0% {
    background-color: rgba(244, 67, 54, 0.3);
  }
  100% {
    background-color: transparent;
  }
}

/* Last updated timestamp */
.last-updated-wrapper {
  margin-top: 10px;
  text-align: right;
  font-size: 10px;
  color: #7a7a7a;
}

.last-updated-label {
  margin-right: 4px;
}

.last-updated {
  color: #8a8a8a;
}

/* Bottom Navigation */
  .bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 450px;
  height: 60px;
  background-color: #0d0d0d;
  border-top: 1px solid #242424;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 5px 0 calc(5px + var(--safe-bottom)); /* Clear the iOS home indicator */
  z-index: 1000; /* Ensure it's above all other content */
  }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7a7a7a;
  font-size: 12px;
  width: 20%;
}

.nav-item i {
  font-size: 18px;
  margin-bottom: 4px;
}

.nav-item.active {
  color: #fff;
}

/* Custom scrollbar */
.site-container::-webkit-scrollbar {
  width: 6px;
}

.site-container::-webkit-scrollbar-track {
  background: #000000;
}

.site-container::-webkit-scrollbar-thumb {
  background-color: #3a3a3a;
  border-radius: 6px;
}

/* Quantify Page Styles */
.quantify-overview {
  background: url("/placeholder.svg?height=200&width=420") center / cover no-repeat;
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  position: relative;
  color: #fff;
}

.quantify-overview .vip-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(255, 122, 26, 0.95);
  color: #000;
  font-weight: 700;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.quantify-overview .vip-badge .vip-badge-logo {
  width: 18px;
  height: 18px;
}

.quantify-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 44px;
}

.quantify-stat {
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: #a8a8a8;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 16px;
  font-weight: bold;
}

.transaction-section {
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

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

.transaction-header h2 {
  font-size: 16px;
}

.transaction-count {
  color: #a8a8a8;
  font-size: 14px;
}

.transaction-info {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.quantify-status {
  font-size: 14px;
}

.status-label {
  color: #a8a8a8;
  margin-right: 5px;
}

.status-value {
  color: #ff7a1a;
}

.start-quantify-section {
  margin-bottom: 15px;
}

.btn-start-quantify {
  width: 100%;
  background: linear-gradient(to right, #ff9a4d, #ff7a1a);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-start-quantify:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.vip-section {
  margin-bottom: 15px;
}

.vip-card {
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

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

.vip-header h3 {
  font-size: 18px;
  color: #ff7a1a;
}

.btn-unlock {
  background-color: #333333;
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 12px;
  transition: background-color 0.3s ease;
}

.btn-unlock:hover {
  background-color: #3a3a3a;
}

.vip-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-detail {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.detail-label {
  color: #a8a8a8;
}

.detail-value {
  font-weight: bold;
}

.vip-strategy {
  margin-top: 10px;
}

.strategy-label {
  color: #a8a8a8;
  font-size: 14px;
  margin-bottom: 5px;
}

.strategy-name {
  font-size: 14px;
  font-weight: bold;
  color: #ff7a1a;
}

/* Investment Page Styles */
.investment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 15px;
}

.investment-title {
  font-size: 18px;
  font-weight: bold;
}

.investment-record {
  color: #a8a8a8;
  font-size: 14px;
}

.investment-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.investment-card {
  background-color: #242424;
  border-radius: 10px;
  overflow: hidden;
}

.card-header {
  padding: 10px 15px;
  background-color: #0d0d0d;
}

.smart-contract {
  font-size: 12px;
  color: #a8a8a8;
  text-transform: uppercase;
}

.card-content {
  padding: 15px;
  display: flex;
  align-items: center;
}

.vip-badge-container {
  margin-right: 15px;
}

.investment-card .vip-badge {
  width: 50px;
  height: 50px;
  background-color: #0d0d0d;
  border: 2px solid #ff7a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
}

.investment-card .vip-badge span {
  color: #ff7a1a;
  font-weight: bold;
  font-size: 16px;
}

.investment-details {
  flex-grow: 1;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  color: #a8a8a8;
  font-size: 14px;
}

.detail-value {
  font-weight: bold;
  font-size: 14px;
}

.detail-value.green {
  color: #4caf50;
}

/* Invite Page Styles */
.invite-section {
  padding: 20px 0;
}

.invite-qr-container {
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.qr-code {
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.invite-illustration {
  position: absolute;
  right: 80px;
  top: 0;
}

.invite-text {
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
}

.invite-bonus-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.4);
  color: #ededed;
  font-size: 14px;
  line-height: 1.5;
}

.invite-bonus-note i {
  color: #ff7a1a;
  font-size: 20px;
  flex-shrink: 0;
}

.invite-bonus-note strong {
  color: #ff9a4d;
}

.invitation-code-section,
.invite-link-section {
  margin-bottom: 15px;
}

.code-label,
.link-label {
  color: #a8a8a8;
  font-size: 14px;
  margin-bottom: 8px;
}

.code-container,
.link-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #242424;
  border-radius: 8px;
  padding: 12px 15px;
}

.code-value {
  font-size: 18px;
  font-weight: bold;
}

.link-value {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.btn-copy {
  background-color: #333333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
}

.share-section {
  margin-bottom: 20px;
}

.share-label {
  color: #a8a8a8;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #242424;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-icon.twitter {
  color: #1da1f2;
}

.social-icon.facebook {
  color: #4267b2;
}

.social-icon.telegram {
  color: #0088cc;
}

.social-icon.linkedin {
  color: #0077b5;
}

.social-icon.wechat {
  color: #7bb32e;
}

.social-icon.whatsapp {
  color: #25d366;
}

.view-team-section {
  margin-bottom: 20px;
}

.btn-view-team {
  width: 100%;
  background: linear-gradient(to right, #ff9a4d, #ff7a1a);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-view-team:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.recharge-section {
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.recharge-title {
  font-size: 16px;
  margin-bottom: 5px;
  position: relative;
  display: inline-block;
}

.recharge-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff7a1a;
}

.recharge-info {
  margin-bottom: 15px;
  font-size: 14px;
  color: #a8a8a8;
}

.rebate-table {
  background-color: #0d0d0d;
  border-radius: 8px;
  overflow: hidden;
}

.rebate-header {
  display: flex;
  background-color: #333333;
  padding: 10px 15px;
}

.rebate-header-cell {
  flex: 1;
  font-weight: bold;
  font-size: 14px;
}

.rebate-row {
  display: flex;
  padding: 10px 15px;
  border-bottom: 1px solid #242424;
}

.rebate-row:last-child {
  border-bottom: none;
}

.rebate-cell {
  flex: 1;
  font-size: 14px;
}

/* Profile Page Styles */
.profile-section {
  padding: 20px 0;
  margin-bottom: 15px;
}

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

.profile-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  background-color: #242424;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #a8a8a8;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid rgba(255, 122, 26, 0.5);
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff7a1a;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 2px solid #0d0d0d;
}

#avatar-form { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-info {
  flex-grow: 1;
  padding: 0 15px;
}

.profile-rank {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 2px 9px 2px 5px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.15);
  border: 1px solid rgba(255, 122, 26, 0.4);
  color: #ff9a4d;
  font-weight: 600;
  font-size: 12px;
  vertical-align: middle;
}

.profile-rank-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.profile-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.profile-id {
  font-size: 14px;
  color: #a8a8a8;
}

.profile-settings {
  font-size: 20px;
  color: #a8a8a8;
}

/* Funds Overview Styles */
.funds-overview {
  margin-bottom: 20px;
}

.funds-card {
  background: linear-gradient(to right, #0d0d0d, #242424);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
}

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

.funds-header h2 {
  font-size: 16px;
  font-weight: normal;
  color: #a8a8a8;
}

.currency {
  font-size: 14px;
  color: #ff7a1a;
}

.funds-amount {
  font-size: 28px;
  font-weight: bold;
}

.funds-note {
  font-size: 12px;
  color: #a8a8a8;
  margin-top: 5px;
  text-align: center;
}

.funds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.funds-item {
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.funds-label {
  font-size: 14px;
  color: #a8a8a8;
  margin-bottom: 8px;
}

.funds-value {
  font-size: 18px;
  font-weight: bold;
}

.funds-sub {
  font-size: 11px;
  color: #ff9a4d;
  margin-top: 6px;
}

/* Pending Earnings (per-session 72h profit hold) */
.pending-earnings-card {
  margin-top: 12px;
  background: linear-gradient(to right, #1a1206, #242424);
  border: 1px solid #3a2a14;
  border-radius: 10px;
  padding: 15px;
}

.pe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pe-info h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a8a8a8;
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 6px;
}

.pe-badge {
  background-color: #ff7a1a;
  color: #000;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 999px;
}

.pe-amount {
  font-size: 20px;
  font-weight: bold;
  color: #ff9a4d;
}

.pe-timer {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pe-timer-label {
  font-size: 11px;
  color: #a8a8a8;
}

.pe-timer-value {
  font-size: 15px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}

.pe-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #8a8a8a;
}

/* Pending releases list (me page) */
.pending-releases {
  margin-bottom: 20px;
}

.pending-releases-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.pending-release-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.pending-release-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  margin-bottom: 8px;
  background-color: #161616;
}

.prr-amount {
  font-weight: bold;
  color: #ff9a4d;
}

.prr-timer {
  font-size: 14px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  color: #c8c8c8;
}

.stat-sub {
  font-size: 11px;
  color: #ff9a4d;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* Action Buttons Styles */
.action-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
}

.action-button:hover {
  transform: translateY(-3px);
}

.button-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 20px;
}

.action-button.recharge .button-icon {
  background-color: #ff9a4d;
  color: #fff;
}

.action-button.withdraw .button-icon {
  background-color: #ff7a1a;
  color: #000;
}

.action-button span {
  font-size: 14px;
}

/* Account Options Styles */
.account-options {
  background-color: #242424;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #0d0d0d;
}

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

.option-icon {
  width: 40px;
  height: 40px;
  background-color: #333333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 16px;
  color: #a8a8a8;
}

.option-content {
  flex-grow: 1;
}

.option-title {
  font-size: 14px;
}

.option-arrow {
  color: #7a7a7a;
  font-size: 12px;
}

/* Help Center Styles */
.help-header {
  background-color: #0d0d0d;
  padding: 15px 0;
  border-bottom: 1px solid #242424;
}

.help-header-content {
  display: flex;
  align-items: center;
  position: relative;
}

.help-header-content h1 {
  font-size: 18px;
  font-weight: normal;
  flex-grow: 1;
  text-align: center;
  margin-right: 30px; /* Balance the back button */
}

.help-topics {
  padding: 15px 0;
}

.help-topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.help-topic-item:hover {
  background-color: #333333;
}

.topic-title {
  font-size: 14px;
  padding-right: 10px;
}

.topic-arrow {
  color: #7a7a7a;
  font-size: 12px;
}

/* Help Topic Content Styles */
.help-topic-content {
  padding: 15px 0;
}

.topic-section {
  margin-bottom: 20px;
}

.topic-section h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #ff7a1a;
}

.topic-section p {
  font-size: 14px;
  color: #a8a8a8;
  line-height: 1.6;
}

/* Agent Cooperation Page Styles */
.agent-content {
  padding: 15px 0;
}

.agent-section {
  background-color: #242424;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.agent-section h2 {
  font-size: 18px;
  color: #ff7a1a;
  margin-bottom: 15px;
}

.agent-section h3 {
  font-size: 16px;
  color: #fff;
  margin: 15px 0 10px;
}

.agent-section p {
  font-size: 14px;
  color: #a8a8a8;
  line-height: 1.6;
  margin-bottom: 10px;
}

.rebate-list {
  list-style: none;
  margin: 15px 0;
}

.rebate-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #a8a8a8;
}

.rebate-level {
  margin-right: 10px;
  font-size: 16px;
}

.rebate-percent {
  color: #ff7a1a;
  font-weight: bold;
  margin-left: 5px;
}

.rebate-examples {
  margin: 15px 0;
  padding: 10px;
  background-color: #0d0d0d;
  border-radius: 8px;
}

.rebate-examples p {
  margin-bottom: 8px;
}

.rebate-note {
  margin: 15px 0;
  padding: 10px;
  background-color: #0d0d0d;
  border-radius: 8px;
  border-left: 3px solid #ff7a1a;
}

.note-icon {
  margin-right: 5px;
}

.team-rewards {
  margin: 15px 0;
}

.reward-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #0d0d0d;
}

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

.reward-condition {
  color: #a8a8a8;
  font-size: 14px;
}

.reward-amount {
  color: #4caf50;
  font-weight: bold;
  font-size: 14px;
}

.team-levels {
  margin: 15px 0;
}

.team-level {
  background-color: #0d0d0d;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.team-level h3 {
  color: #ff7a1a;
  margin-bottom: 10px;
  font-size: 16px;
}

.level-requirements,
.level-benefits {
  margin-bottom: 10px;
}

.highlight {
  color: #ff7a1a;
  font-weight: bold;
}

.team-note {
  margin: 15px 0;
  padding: 10px;
  background-color: #0d0d0d;
  border-radius: 8px;
  border-left: 3px solid #f44336;
}

.promotion-info {
  margin: 15px 0;
  padding: 10px;
  background-color: #0d0d0d;
  border-radius: 8px;
}

.agent-cta {
  margin: 20px 0;
  text-align: center;
}

.btn-start-agent {
  display: inline-block;
  background: linear-gradient(to right, #ff9a4d, #ff7a1a);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-start-agent:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

