/* ========== profile-page ========== */
    #page-profile {
      padding-bottom: 90px;
    }

    .profile-header {
      background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-primary) 50%, #66bb6a 100%);
      color: white;
      padding: 50px 24px 40px;
      position: relative;
      overflow: hidden;
    }

    .profile-header::before {
      content: '';
      position: absolute;
      top: -50px;
      left: -50px;
      width: 200px;
      height: 200px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.04);
    }

    .profile-header::after {
      content: '';
      position: absolute;
      bottom: -30px;
      right: -30px;
      width: 150px;
      height: 150px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.06);
    }

    .profile-user-row {
      display: flex;
      align-items: center;
      gap: 16px;
      position: relative;
      z-index: 1;
    }

    .avatar {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 30px;
      border: 3px solid rgba(255, 255, 255, 0.4);
      flex-shrink: 0;
    }

    .profile-user-info {
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 12px;
      padding: 10px 16px;
      flex: 1;
    }

    .username {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 2px;
    }

    .user-id {
      font-size: 12px;
      opacity: 0.85;
    }

    .profile-stats {
      display: flex;
      gap: 12px;
      padding: 0 16px;
      margin-top: -22px;
      position: relative;
      z-index: 2;
    }

    .profile-stat {
      flex: 1;
      background: var(--card);
      border-radius: var(--radius-md);
      padding: 16px;
      text-align: center;
      box-shadow: var(--shadow-md);
    }

    .profile-stat-num {
      font-size: 24px;
      font-weight: 700;
      color: var(--green-primary);
    }

    .profile-stat-label {
      font-size: 12px;
      color: var(--text-hint);
      margin-top: 2px;
    }

    .my-land-actions {
      display: flex;
      gap: 12px;
      padding: 0 16px;
      margin-bottom: 20px;
    }

    .my-land-action-btn {
      flex: 1;
      background: var(--card);
      border-radius: var(--radius-lg);
      padding: 20px 12px;
      text-align: center;
      box-shadow: var(--shadow-sm);
      cursor: pointer;
      transition: transform 0.15s;
      border: 1px solid rgba(45, 140, 60, 0.06);
    }

    .my-land-action-btn:active {
      transform: scale(0.96);
    }

    .my-land-action-btn .action-icon {
      font-size: 32px;
      margin-bottom: 8px;
    }

    .my-land-action-btn .action-text {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .menu-group {
      padding: 0 16px;
      margin-bottom: 12px;
    }

    .menu-group-title {
      font-size: 13px;
      color: var(--text-hint);
      padding: 16px 4px 8px;
      font-weight: 500;
    }

    .menu-list {
      background: var(--card);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      border: 1px solid rgba(45, 140, 60, 0.06);
    }

    .menu-item {
      padding: 16px;
      display: flex;
      align-items: center;
      cursor: pointer;
      transition: background 0.2s;
    }

    .menu-item:active {
      background: rgba(45, 140, 60, 0.04);
    }

    .menu-item + .menu-item {
      border-top: 1px solid rgba(45, 140, 60, 0.06);
    }

    .menu-icon-wrap {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 14px;
      font-size: 18px;
    }

    .menu-icon-wrap.green { background: var(--green-lighter); }
    .menu-icon-wrap.gold { background: var(--gold-light); }
    .menu-icon-wrap.brown { background: var(--brown-light); }
    .menu-icon-wrap.blue { background: #e3f2fd; }

    .menu-text {
      flex: 1;
      font-size: 15px;
      color: var(--text-primary);
      font-weight: 500;
    }

    .menu-arrow {
      color: var(--text-hint);
      font-size: 14px;
    }

    .menu-badge {
      background: var(--red);
      color: white;
      font-size: 10px;
      padding: 2px 6px;
      border-radius: 10px;
      margin-right: 8px;
    }


/* ========== wallet ========== */
    .wallet-card {
      background: linear-gradient(135deg, #1b5e20, #2d8c3c, #4caf50);
      border-radius: 16px;
      padding: 24px;
      color: #fff;
      margin-bottom: 16px;
      position: relative;
      overflow: hidden;
    }
    .wallet-card::after {
      content: '';
      position: absolute;
      top: -40px;
      right: -40px;
      width: 160px;
      height: 160px;
      border-radius: 50%;
      background: rgba(255,255,255,0.06);
    }
    .wallet-card-label {
      font-size: 13px;
      opacity: 0.85;
      margin-bottom: 8px;
    }
    .wallet-card-balance {
      font-size: 36px;
      font-weight: 800;
      margin-bottom: 16px;
    }
    .wallet-card-balance small {
      font-size: 16px;
      font-weight: 400;
    }
    .wallet-card-row {
      display: flex;
      gap: 24px;
      font-size: 12px;
      opacity: 0.8;
    }
    .wallet-card-row span {
      display: flex;
      flex-direction: column;
    }
    .wallet-card-row strong {
      font-size: 16px;
      opacity: 1;
    }
    .wallet-actions {
      display: flex;
      gap: 12px;
      margin-bottom: 20px;
    }
    .wallet-action-btn {
      flex: 1;
      padding: 12px;
      border-radius: 12px;
      border: none;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    .wallet-action-btn.recharge {
      background: linear-gradient(135deg, #e65100, #ff8f00);
      color: #fff;
    }
    .wallet-action-btn.share {
      background: #fff;
      color: #2e7d32;
      border: 2px solid #2e7d32;
    }
    .wallet-section {
      background: #fff;
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 16px;
    }
    .wallet-section-title {
      font-size: 15px;
      font-weight: 700;
      color: #1a2e1a;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .wallet-tx-item {
      display: flex;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid #f0f0f0;
    }
    .wallet-tx-item:last-child {
      border-bottom: none;
    }
    .wallet-tx-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      margin-right: 12px;
      flex-shrink: 0;
    }
    .wallet-tx-icon.recharge { background: #fff3e0; }
    .wallet-tx-icon.reward { background: #e8f5e9; }
    .wallet-tx-icon.payment { background: #fce4ec; }
    .wallet-tx-icon.withdraw { background: #e3f2fd; }
    .wallet-tx-info {
      flex: 1;
    }
    .wallet-tx-desc {
      font-size: 14px;
      color: #1a2e1a;
      font-weight: 500;
    }
    .wallet-tx-time {
      font-size: 12px;
      color: #999;
      margin-top: 2px;
    }
    .wallet-tx-amount {
      font-size: 16px;
      font-weight: 700;
    }
    .wallet-tx-amount.income { color: #2e7d32; }
    .wallet-tx-amount.expense { color: #e53935; }
    .wallet-empty {
      text-align: center;
      padding: 30px;
      color: #999;
      font-size: 14px;
    }
    .wallet-referral-card {
      background: linear-gradient(135deg, #fff8e1, #fff3e0);
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 16px;
      border: 1px dashed #ff8f00;
    }
    .wallet-referral-title {
      font-size: 16px;
      font-weight: 700;
      color: #e65100;
      margin-bottom: 8px;
    }
    .wallet-referral-desc {
      font-size: 13px;
      color: #795548;
      margin-bottom: 12px;
      line-height: 1.6;
    }
    .wallet-referral-code {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #fff;
      padding: 10px 14px;
      border-radius: 10px;
      margin-bottom: 12px;
    }
    .wallet-referral-code span {
      flex: 1;
      font-size: 18px;
      font-weight: 800;
      color: #e65100;
      letter-spacing: 2px;
    }
    .wallet-referral-copy {
      background: #e65100;
      color: #fff;
      border: none;
      padding: 6px 14px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
    }
    .wallet-referral-stats {
      display: flex;
      gap: 16px;
    }
    .wallet-referral-stat {
      flex: 1;
      text-align: center;
    }
    .wallet-referral-stat strong {
      font-size: 20px;
      color: #e65100;
      display: block;
    }
    .wallet-referral-stat small {
      font-size: 12px;
      color: #795548;
    }
    /* Recharge Modal */
    .recharge-modal-mask {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
      z-index: 10001;
      display: flex;
      align-items: flex-end;
    }
    .recharge-modal {
      width: 100%;
      background: #fff;
      border-radius: 20px 20px 0 0;
      padding: 24px;
    }
    .recharge-modal-title {
      font-size: 18px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 20px;
    }
    .recharge-amounts {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }
    .recharge-amount-item {
      padding: 14px 8px;
      border-radius: 12px;
      border: 2px solid #e0e0e0;
      text-align: center;
      cursor: pointer;
      font-size: 16px;
      font-weight: 700;
      color: #333;
      transition: all 0.2s;
    }
    .recharge-amount-item.selected {
      border-color: #2e7d32;
      background: #e8f5e9;
      color: #2e7d32;
    }
    .recharge-amount-item small {
      display: block;
      font-size: 11px;
      font-weight: 400;
      color: #999;
      margin-top: 2px;
    }
    .recharge-custom {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
    }
    .recharge-custom input {
      flex: 1;
      padding: 12px;
      border: 2px solid #e0e0e0;
      border-radius: 12px;
      font-size: 15px;
      outline: none;
    }
    .recharge-custom input:focus {
      border-color: #2e7d32;
    }
    .recharge-submit {
      width: 100%;
      padding: 14px;
      background: linear-gradient(135deg, #e65100, #ff8f00);
      color: #fff;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
    }
    .recharge-cancel {
      width: 100%;
      padding: 12px;
      background: #f5f5f5;
      color: #666;
      border: none;
      border-radius: 12px;
      font-size: 14px;
      margin-top: 8px;
      cursor: pointer;
    }

    /* Market Page Styles */
    .market-index-card {
      background: linear-gradient(135deg, #1b5e20, #43a047);
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 16px;
      color: #fff;
    }
    .market-index-title {
      font-size: 14px;
      opacity: 0.9;
      margin-bottom: 4px;
    }
    .market-index-value {
      font-size: 32px;
      font-weight: 800;
      margin-bottom: 4px;
    }
    .market-index-change {
      font-size: 13px;
      opacity: 0.85;
    }
    .market-index-change.up { color: #ffeb3b; }
    .market-index-change.down { color: #90caf9; }
    .market-index-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }
    .market-index-item {
      background: #fff;
      border-radius: 12px;
      padding: 14px 10px;
      text-align: center;
      border: 1px solid #e8e8e8;
    }
    .market-index-item-name {
      font-size: 12px;
      color: #888;
      margin-bottom: 4px;
    }
    .market-index-item-val {
      font-size: 18px;
      font-weight: 700;
      color: #333;
    }
    .market-index-item-chg {
      font-size: 12px;
      margin-top: 2px;
    }
    .market-index-item-chg.up { color: #e53935; }
    .market-index-item-chg.down { color: #2e7d32; }
    .market-tabs {
      display: flex;
      gap: 0;
      margin-bottom: 12px;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid #e0e0e0;
    }
    .market-tab {
      flex: 1;
      padding: 10px;
      text-align: center;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      background: #f5f5f5;
      color: #666;
      transition: all 0.2s;
    }
    .market-tab.active {
      background: #e53935;
      color: #fff;
    }
    .market-rank-item {
      display: flex;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid #f0f0f0;
    }
    .market-rank-num {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      margin-right: 10px;
      flex-shrink: 0;
      color: #fff;
    }
    .market-rank-num.top1 { background: #e53935; }
    .market-rank-num.top2 { background: #ef6c00; }
    .market-rank-num.top3 { background: #f9a825; color: #333; }
    .market-rank-num.normal { background: #e0e0e0; color: #666; }
    .market-rank-info {
      flex: 1;
    }
    .market-rank-name {
      font-size: 15px;
      font-weight: 600;
      color: #333;
    }
    .market-rank-price {
      font-size: 13px;
      color: #888;
      margin-top: 2px;
    }
    .market-rank-change {
      text-align: right;
      flex-shrink: 0;
    }
    .market-rank-change-val {
      font-size: 16px;
      font-weight: 700;
    }
    .market-rank-change-val.up { color: #e53935; }
    .market-rank-change-val.down { color: #2e7d32; }
    .market-rank-change-unit {
      font-size: 11px;
      color: #999;
    }
    .market-date {
      font-size: 12px;
      color: #999;
      text-align: center;
      margin-bottom: 12px;
    }
    .market-source {
      font-size: 11px;
      color: #bbb;
      text-align: center;
      padding: 12px 0;
    }

/* ========== 吉星换大米（简化版邀请） ========== */
    .wallet-rice-wrap {
      background: linear-gradient(135deg, #fff8e1, #fff3e0);
      border-radius: 16px;
      padding: 20px;
      display: flex;
      gap: 16px;
      align-items: center;
      border: 1px solid #ffe0b2;
      cursor: pointer;
      transition: transform .15s;
    }
    .wallet-rice-wrap:active { transform: scale(0.98); }
    .wallet-rice-img-box {
      width: 100px;
      height: 100px;
      border-radius: 12px;
      overflow: hidden;
      background: #fff3e0;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .wallet-rice-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .wallet-rice-text { flex: 1; min-width: 0; }
    .wallet-rice-title {
      font-size: 17px;
      font-weight: 800;
      color: #bf360c;
      line-height: 1.3;
      margin-bottom: 4px;
    }
    .wallet-rice-sub {
      font-size: 14px;
      color: #8d6e63;
      margin-bottom: 10px;
    }
    .wallet-rice-stars {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: wrap;
    }
    .wallet-rice-stars .star-icon { font-size: 18px; }
    .wallet-rice-stars .star-num {
      font-size: 26px;
      font-weight: 900;
      color: #e65100;
      line-height: 1;
    }
    .wallet-rice-stars .star-label {
      font-size: 13px;
      color: #6d4c41;
      font-weight: 600;
    }
    .wallet-rice-stars .star-avail { font-size: 14px; color: #2e7d32; font-weight: 700; }
    .wallet-rice-stars .star-hint { font-size: 16px; color: #6d4c41; font-weight: 600; }

    .wallet-stats-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-top: 12px;
    }
    .wallet-stat-box {
      background: #f5f9f5;
      border-radius: 10px;
      padding: 10px 6px;
      text-align: center;
      border: 1px solid #e8f0e8;
    }
    .wallet-stat-box strong {
      display: block;
      font-size: 20px;
      font-weight: 800;
      color: #1b5e20;
      line-height: 1.1;
    }
    .wallet-stat-box small {
      display: block;
      font-size: 11px;
      color: #757575;
      margin-top: 2px;
    }
    .wallet-claim-list { border-top: 1px solid #f0f0f0; margin-top: 8px; }
    .wallet-claim-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 0;
      border-bottom: 1px solid #f5f5f5;
    }
    .wallet-claim-left { flex: 1; min-width: 0; }
