body {
  background: #ffffff;
  color: #000;
  padding-bottom: 80px;
}

.main-body {
  min-height: 100vh;
  padding-top: 70px;
  padding-bottom: 80px;
}

.service-page {
  background: #ffffff;
  color: #000;
}

.nav-item.active {
  color: #007bff;
  font-weight: bold;
}

body.dark {
  background: #0b0f14;
  color: #fff;
  padding: 10px;
}

.login-box {
  background: #1e293b;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  width: 250px;
  margin: 100px auto;
}

input {
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  border: none;
  margin-top: 10px;
}

button {
  padding: 10px;
  background: green;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

button:disabled {
  background: #333;
  color: #777;
}

button.active {
  background: #ff4d4d;
  color: white;
}

.dashboard-box {
  text-align: center;
  margin-top: 100px;
}

.menu {
  display: grid;
  grid-template-columns: repeat(2, 150px);
  gap: 20px;
  margin: 30px 0;
  justify-content: center;
}

.card {
  background: #1e293b;
  padding: 30px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.card:hover {
  background: #334155;
  transform: scale(1.05);
}

.top-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #ffffff;
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

.menu-item {
  text-align: center;
  cursor: pointer;
  font-size: 14px;
}

.menu-item span {
  display: block;
  font-size: 22px;
  margin-bottom: 5px;
}

/* ---------------- PROFILE ---------------- */
.profile-box {
  padding: 15px;
  border-radius: 10px;
  margin: 15px;
}

.user-info {
  display: flex;
  align-items: center;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 10px;
}

.vip {
  background: orange;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
}

/* ---------------- ACTION ---------------- */
.action-box {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.action-item {
  padding: 10px;
  font-size: 14px;
}

/* ---------------- MENU GRID ---------------- */
.menu-grid {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 15px 0;
}

.menu-grid div {
  text-align: center;
  font-size: 14px;
  cursor: pointer;
}

/* ---------------- LIST ---------------- */
.list {
  margin: 10px;
}

.list-item {
  padding: 15px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  border-top: 1px solid #ddd;
  z-index: 999;
}

.nav-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #666;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
}

.nav-item span {
  font-size: 22px;
}

.nav-item.active {
  color: #007bff;
  font-weight: bold;
}

.section {
  border-bottom: 1px solid #222;
  padding: 15px 10px;
}

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

.row span {
  width: 40%;
  text-align: left;
}

.row input {
  width: 60%;
  text-align: right;
}

.right-text {
  color: #888;
}

.option {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #444;
  border-radius: 8px;
  margin-top: 10px;
  color: #aaa;
}

.option.active {
  border-color: red;
  color: white;
}

.bottom-btn {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  padding: 10px;
}

.bottom-btn button {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
}

.cancel-btn {
  background: transparent;
  border: 1px solid #444;
  color: white;
}

.page-title {
  text-align: center;
  padding: 14px;
  background: #001b44;
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.menu-wrapper {
  padding: 15px 10px;
  margin-bottom: 80px;
}

.tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.tab {
  background: transparent;
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}

.tab.active {
  background: #6b4d57;
}

.menu-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 38px;
  cursor: pointer;
}

.vip-badge {
  position: absolute;
  top: -14px;
  left: 10px;
  background: #d28a00;
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.logo {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
}

.info h3 {
  margin: 0;
  font-size: 18px;
}

.info p {
  margin: 6px 0;
  font-size: 13px;
  color: #ddd;
}

.commission {
  color: rgb(0, 255, 42);
}

.no-more {
  text-align: center;
  margin-top: 25px;
  color: #b9a07d;
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.amazon-page,
.alibaba-page,
.aliexpress-page {
  background: linear-gradient(
    to bottom,
    #8a2113 0%,
    #831212 26%,
    #d4dadf 26%,
    #c9d1d9 100%
  );
  min-height: 100vh;
  color: white;
}

.amazon-page *,
.alibaba-page *,
.aliexpress-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.amazon-header {
  height: 180px;
  position: relative;
  padding: 15px 20px;
}

.back-btn {
  position: absolute;
  left: 20px;
  top: 15px;
  font-size: 30px;
}

.amazon-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.balance-box {
  margin-top: 30px;
}

.balance-box p {
  font-size: 16px;
}

.balance-box h2 {
  font-size: 16px;
  margin-top: 6px;
}

/* Stats Card */
.stats-card {
  position: relative;
  top: -35px;

  margin: 0 auto;
  width: 340px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;

  min-height: 360px;
  background: #05080d;
  border-radius: 6px;
  padding: 30px 20px;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 18px;
}

.stat {
  text-align: center;
}

.stat h4 {
  font-size: 14px;
  margin-bottom: 3px;
}

.stat p {
  font-size: 9px;
  line-height: 1.2;
}

.grab-btn {
  margin-top: 32px;
  width: 100%;
  background: #73515f;
  border: none;
  color: white;
  padding: 13px;
  border-radius: 28px;
  font-size: 12px;
  cursor: pointer;
}

/* Hint */
.hint-box {
  padding: 18px 30px;
  font-size: 10px;
  line-height: 1.8;
  color: #f2c66f;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  overflow-y: auto;
  background: rgba(0,0,0,0.55);
  z-index: 999;
}

/* Popup Box */
.order-popup {
  width: 92%;
  max-width: 470px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  color: #333;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* Header */
.popup-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.close-btn {
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 32px;
  cursor: pointer;
  color: #333;
}

/* Order Number */
.order-number {
  text-align: center;
  color: #d94684;
  font-size: 17px;
  margin: 18px 0;
}

.order-popup .product-box {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 20px;
}

.order-popup .product-details {
  flex: 1;
}

.order-popup .product-name {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #333;
}

.order-popup .product-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: #333;
}

/* Order Info */
.order-info p {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 15px;
}

.income-row {
  align-items: center;
}

.income {
  color: #f28c28;
  font-size: 20px;
  font-weight: bold;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  margin-top: 18px;
  padding: 16px;
  border: none;
  border-radius: 10px;
  background: #765560;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.multi-product-row{
  display:flex;
  gap:10px;
  margin-bottom:10px;
}

/* MODAL */
#orderModal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:999;
}

.modal-overlay{
  position:absolute;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
}

.modal-box{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:90%;
  max-width:400px;
  background:#1b222c;
  border-radius:12px;
  padding:15px;
}