:root {
  --phone-h: 740px;
  --bg: #06142e;
  --card: #0c1f3a;
  --muted: #9fb0c9;
  --accent: #00d3a3;
}
* { 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Arial, sans-serif;
  background: #031026;
  color: #e6f0fb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
}
.phone {
  width: 100%;
  max-width: 380px;
  min-height: var(--phone-h);
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  padding: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
}
.status { 
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}
.status .right-section {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0088cc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease;
}
.profile-icon:hover {
  transform: scale(1.1);
}
.language-select {
  padding: 6px;
  font-size: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.language-select option { 
  color: #000;
  background: #fff;
}
.slide-menu {
  position: fixed;
  left: -100%;
  top: 0;
  bottom: 0;
  width: 75%;
  max-width: 260px;
  background: var(--card);
  z-index: 300;
  transition: left 0.3s ease;
  padding: 16px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.5);
  overflow-y: auto;
}
.slide-menu.active {
  left: 0;
}
.slide-menu .menu-header {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slide-menu .close-btn {
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  padding: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.slide-menu .close-btn:hover {
  background: rgba(255,255,255,0.2);
}
.slide-menu .menu-item {
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: background 0.2s, color 0.2s;
}
.slide-menu .menu-item:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.menu-icon {
  width: 22px;
  height: 18px;
  cursor: pointer;
  margin-right: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu-icon div {
  width: 100%;
  height: 2px;
  background: var(--muted);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-icon.active div:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-icon.active div:nth-child(2) {
  opacity: 0;
}
.menu-icon.active div:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.screen {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 70px;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.card {
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  margin: 0 4px 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
h3 {
  margin: 6px 0 8px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}
h4 {
  margin: 10px 0 6px;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}
.user-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.user-header .user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0088cc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}
.user-header .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-header .user-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.wallet-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.wallet-summary .balance {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.wallet-summary .txn-stats {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.wallet-summary .txn-stats div {
  flex: 1;
  text-align: center;
  font-size: 12px;
}
.wallet-summary .txn-stats .success { color: #00cc00; }
.wallet-summary .txn-stats .failed { color: #ff3333; }
.wallet-summary .txn-stats .pending { color: #ffcc00; }
.scroll-message {
  background: rgba(255,255,255,0.08);
  padding: 8px;
  border-radius: 10px;
  margin: 0 4px 10px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
}
.scroll-message marquee {
  width: 100%;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.tile {
  background: rgba(255,255,255,0.08);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: transform .2s, background .2s;
  touch-action: manipulation;
}
.tile span {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}
.tile:hover,
.tile:active {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.15);
}
input, select, textarea {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 13px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea {
  resize: vertical;
  min-height: 70px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
select option {
  color: #000;
  background: #fff;
}
.btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  font-size: 13px;
  transition: background 0.2s;
}
.btn.primary {
  background: var(--accent);
  color: #012;
}
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.btn:active {
  opacity: 0.8;
}
.button-container {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.button-container .btn {
  flex: 1;
  padding: 8px;
  font-size: 12px;
}
.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 56px;
  background: var(--card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
  z-index: 100;
}
.nav-btn {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}
.nav-btn.active {
  color: #fff;
}
.txn-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
}
.tab-btn {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
.tab-btn.active {
  color: #fff;
  border-bottom: 2px solid var(--accent);
}
.txn-item {
  background: rgba(255,255,255,0.06);
  padding: 8px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.txn-item:active {
  background: rgba(255,255,255,0.1);
}
.txn-item .txn-id {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.offer-card {
  background: linear-gradient(135deg, #00d3a3, #2ba5f2);
  padding: 10px;
  border-radius: 12px;
  margin: 8px 0;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 13px;
}
.profile {
  text-align: center;
}
.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #0088cc;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  font-weight: 600;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0088cc;
}
.referral-link-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.referral-link {
  flex: 1;
  padding: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.copy-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--accent);
  color: #012;
  cursor: pointer;
}
.level-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
}
.level-section {
  margin-bottom: 12px;
}
.level-user {
  background: rgba(255,255,255,0.06);
  padding: 8px;
  border-radius: 10px;
  margin: 6px 0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: none;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal .box {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  width: 90%;
  max-width: 300px;
  text-align: left;
  color: #fff;
}
.modal .box p {
  margin: 6px 0;
  font-size: 13px;
}
.modal .box .detail-label {
  font-weight: 600;
  color: var(--accent);
}
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 4px 12px;
}
.slider {
  height: calc(var(--phone-h) * 0.18);
  min-height: 90px;
  max-height: 150px;
}
.slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform .5s ease;
}
.slides .slide {
  width: 100%;
  flex: 0 0 100%;
  height: 100%;
}
.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.dots {
  text-align: center;
  margin-top: 6px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b7b8a;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active {
  background: #fff;
}
.logo {
  display: block;
  margin: 16px auto;
  width: 80px;
  height: auto;
}
.recipient-name {
  font-size: 13px;
  color: var(--accent);
  margin: 6px 0;
  display: none;
}
@media (max-width: 400px) {
  .phone {
    border-radius: 0;
    max-width: 100%;
    min-height: 100vh;
    padding: 10px;
  }
  .status {
    font-size: 11px;
    padding: 0 2px;
  }
  .profile-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .language-select {
    padding: 4px;
    font-size: 11px;
  }
  .menu-icon {
    width: 18px;
    height: 16px;
  }
  .menu-icon div {
    height: 2px;
  }
  .menu-icon.active div:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-icon.active div:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .slide-menu {
    width: 80%;
    max-width: 240px;
    padding: 12px;
  }
  .slide-menu .menu-header {
    font-size: 15px;
  }
  .slide-menu .menu-item {
    font-size: 13px;
    padding: 10px;
  }
  .card {
    padding: 12px;
    margin: 0 2px 10px;
  }
  h3 {
    font-size: 15px;
  }
  h4 {
    font-size: 13px;
  }
  .user-header .user-avatar {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .user-header .user-name {
    font-size: 15px;
  }
  .wallet-summary .balance {
    font-size: 15px;
  }
  .wallet-summary .txn-stats div {
    font-size: 11px;
  }
  .scroll-message {
    font-size: 11px;
    padding: 6px;
  }
  .grid-3 {
    gap: 8px;
  }
  .tile {
    padding: 10px;
    font-size: 11px;
  }
  .tile span {
    font-size: 16px;
  }
  input, select, textarea {
    padding: 8px;
    font-size: 12px;
    margin: 5px 0;
  }
  .btn {
    padding: 8px;
    font-size: 12px;
  }
  .button-container .btn {
    padding: 7px;
    font-size: 11px;
  }
  .bottom-nav {
    height: 50px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 10px;
  }
  .nav-btn {
    font-size: 10px;
    padding: 6px;
  }
  .txn-tabs {
    gap: 4px;
  }
  .tab-btn {
    font-size: 12px;
    padding: 6px;
  }
  .txn-item {
    font-size: 12px;
    padding: 6px;
  }
  .txn-item .txn-id {
    font-size: 10px;
  }
  .offer-card {
    font-size: 12px;
    padding: 8px;
  }
  .avatar {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }
  .referral-link {
    font-size: 11px;
    padding: 6px;
  }
  .copy-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  .level-user {
    font-size: 11px;
    padding: 6px;
  }
  .modal .box {
    padding: 14px;
    width: 95%;
    max-width: 280px;
  }
  .modal .box p {
    font-size: 12px;