﻿body { background: var(--bg); padding-bottom: 20px; }
    .my-points-bar {
      background: linear-gradient(135deg, #1A1D26 0%, #2D3140 100%);
      padding: 20px 16px 24px;
      color: white;
      position: relative;
      overflow: hidden;
    }
    .my-points-bar::before {
      content: '';
      position: absolute;
      top: -30px;
      right: -30px;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: rgba(255,184,0,0.1);
    }
    .my-points-bar::after {
      content: '';
      position: absolute;
      bottom: -20px;
      left: 0;
      right: 0;
      height: 20px;
      background: var(--bg);
      border-radius: 20px 20px 0 0;
    }
    .my-points-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }
    .my-points-label { font-size: 13px; opacity: 0.7; }
    .my-points-detail {
      font-size: 12px;
      color: var(--accent-gold);
      display: flex;
      align-items: center;
      gap: 3px;
    }
    .my-points-detail svg { width: 14px; height: 14px; }
    .my-points-value { font-size: 40px; font-weight: 700; letter-spacing: -1px; }
    .my-points-value .unit { font-size: 15px; font-weight: 400; opacity: 0.6; margin-left: 4px; }
    .my-points-row {
      display: flex;
      gap: 16px;
      margin-top: 10px;
      padding-top: 12px;
      border-top: 1px solid rgba(255,255,255,0.1);
    }
    .my-points-stat { font-size: 12px; opacity: 0.6; }
    .my-points-stat strong { opacity: 1; font-weight: 600; }
    .section { padding: 0 16px; }
    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 0 10px;
    }
    .section-title { font-size: 16px; font-weight: 600; }
    .section-action { font-size: 13px; color: var(--primary); font-weight: 500; }
    .sort-bar {
      display: flex;
      gap: 8px;
      padding: 0 16px 8px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .sort-bar::-webkit-scrollbar { display: none; }
    .sort-btn {
      padding: 6px 14px;
      border-radius: var(--radius-full);
      border: 1.5px solid var(--border);
      font-size: 12px;
      font-weight: 500;
      color: var(--text-secondary);
      white-space: nowrap;
      transition: all 0.2s;
      cursor: pointer;
    }
    .sort-btn.active {
      border-color: var(--primary);
      background: rgba(255,107,53,0.08);
      color: var(--primary);
    }
    .order-card {
      background: var(--bg-white);
      border-radius: var(--radius-md);
      padding: 16px;
      margin-bottom: 10px;
      box-shadow: var(--shadow-sm);
      transition: transform 0.2s;
    }
    .order-card:active { transform: scale(0.985); }
    .order-card-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }
    .order-shop-icon {
      width: 40px;
      height: 40px;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }
    .order-shop-info { flex: 1; }
    .order-shop-name {
      font-size: 15px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .order-shop-name .verified {
      width: 14px;
      height: 14px;
      background: var(--accent-blue);
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .order-shop-name .verified svg { width: 8px; height: 8px; color: white; }
    .order-shop-addr { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
    .order-price-tag {
      padding: 4px 10px;
      border-radius: var(--radius-full);
      font-size: 14px;
      font-weight: 700;
      background: rgba(255,107,53,0.1);
      color: var(--primary);
    }
    .order-price-tag .per { font-size: 10px; font-weight: 400; opacity: 0.7; }
    .order-body {
      display: flex;
      gap: 0;
      margin-bottom: 12px;
    }
    .order-stat {
      flex: 1;
      text-align: center;
      padding: 10px 0;
      position: relative;
    }
    .order-stat + .order-stat::before {
      content: '';
      position: absolute;
      left: 0;
      top: 8px;
      bottom: 8px;
      width: 1px;
      background: var(--border-light);
    }
    .order-stat-value { font-size: 18px; font-weight: 700; }
    .order-stat-value.remain { color: var(--primary); }
    .order-stat-value.rate { color: var(--accent-green); }
    .order-stat-label { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
    .order-progress {
      width: 100%;
      height: 4px;
      border-radius: 2px;
      background: var(--border-light);
      margin-bottom: 12px;
      overflow: hidden;
    }
    .order-progress-fill {
      height: 100%;
      border-radius: 2px;
      background: var(--primary-gradient);
      transition: width 0.3s;
    }
    .order-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .order-earning-preview {
      font-size: 12px;
      color: var(--text-secondary);
    }
    .order-earning-preview strong { color: var(--accent-green); font-weight: 600; }
    .order-exchange-btn {
      padding: 8px 20px;
      border-radius: var(--radius-full);
      background: var(--primary-gradient);
      color: white;
      font-size: 14px;
      font-weight: 600;
      box-shadow: var(--shadow-primary);
      transition: transform 0.2s;
    }
    .order-exchange-btn:active { transform: scale(0.95); }
    .order-hot-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 8px;
      border-radius: var(--radius-full);
      background: rgba(255,71,87,0.1);
      color: var(--accent-red);
      font-size: 10px;
      font-weight: 600;
    }
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 200;
      background: rgba(0,0,0,0.5);
      align-items: flex-end;
      justify-content: center;
    }
    .modal-overlay.show { display: flex; }
    .modal-sheet {
      background: white;
      width: 100%;
      border-radius: 20px 20px 0 0;
      padding: 0 16px calc(20px + var(--safe-bottom));
      max-height: 85vh;
      overflow-y: auto;
      animation: slideUp 0.3s ease-out;
    }
    @keyframes slideUp {
      from { transform: translateY(100%); }
      to { transform: translateY(0); }
    }
    .modal-handle {
      width: 36px;
      height: 4px;
      border-radius: 2px;
      background: var(--border);
      margin: 10px auto 16px;
    }
    .modal-title {
      font-size: 18px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 20px;
    }
    .modal-shop-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px;
      background: var(--bg);
      border-radius: var(--radius-md);
      margin-bottom: 16px;
    }
    .modal-shop-icon {
      width: 36px;
      height: 36px;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }
    .modal-shop-name { flex: 1; font-size: 14px; font-weight: 600; }
    .modal-shop-price {
      font-size: 16px;
      font-weight: 700;
      color: var(--primary);
    }
    .modal-shop-price .per { font-size: 11px; font-weight: 400; opacity: 0.7; }
    .modal-input-group { margin-bottom: 16px; }
    .modal-label {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-secondary);
      margin-bottom: 8px;
    }
    .modal-points-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--bg);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      border: 1.5px solid var(--border);
      transition: border-color 0.2s;
    }
    .modal-points-wrap:focus-within { border-color: var(--primary); }
    .modal-points-wrap input {
      flex: 1;
      font-size: 28px;
      font-weight: 700;
      color: var(--text-primary);
      background: none;
      text-align: center;
    }
    .modal-points-wrap input::placeholder { color: var(--border); font-weight: 400; font-size: 16px; }
    .modal-points-wrap .suffix { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
    .modal-quick-row {
      display: flex;
      gap: 8px;
      margin-top: 8px;
    }
    .modal-quick-btn {
      flex: 1;
      padding: 8px 0;
      border-radius: var(--radius-full);
      border: 1.5px solid var(--border);
      font-size: 13px;
      font-weight: 500;
      text-align: center;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.2s;
    }
    .modal-quick-btn.active {
      border-color: var(--primary);
      background: rgba(255,107,53,0.08);
      color: var(--primary);
    }
    .modal-summary {
      background: var(--bg);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      margin-bottom: 16px;
    }
    .modal-summary-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 14px;
      padding: 4px 0;
    }
    .modal-summary-row .label { color: var(--text-secondary); }
    .modal-summary-row .value { font-weight: 500; }
    .modal-summary-row.highlight .value { color: var(--accent-green); font-weight: 700; font-size: 18px; }
    .modal-summary-row.total {
      padding-top: 8px;
      margin-top: 6px;
      border-top: 1px dashed var(--border);
    }
    .modal-summary-row.total .value { font-size: 22px; font-weight: 700; color: var(--primary); }
    .modal-btn-row { display: flex; gap: 10px; }
    .modal-btn-row .btn { flex: 1; padding: 14px; font-size: 16px; }
    .success-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 300;
      background: rgba(0,0,0,0.5);
      align-items: center;
      justify-content: center;
    }
    .success-overlay.show { display: flex; }
    .success-card {
      background: white;
      border-radius: var(--radius-xl);
      padding: 32px 24px;
      width: 280px;
      text-align: center;
      animation: popIn 0.4s ease-out;
    }
    @keyframes popIn {
      0% { transform: scale(0.5); opacity: 0; }
      70% { transform: scale(1.05); }
      100% { transform: scale(1); opacity: 1; }
    }
    .success-icon {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: rgba(38,222,129,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
    }
    .success-icon svg { width: 32px; height: 32px; color: var(--accent-green); }
    .success-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
    .success-amount { font-size: 28px; font-weight: 700; color: var(--accent-green); margin-bottom: 4px; }
    .success-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
    .success-btn {
      width: 100%;
      padding: 12px;
      border-radius: var(--radius-full);
      background: var(--primary-gradient);
      color: white;
      font-size: 15px;
      font-weight: 600;
    }
    .my-exchange-card {
      background: var(--bg-white);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      margin-bottom: 10px;
      box-shadow: var(--shadow-sm);
    }
    .my-exchange-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }
    .my-exchange-shop { font-size: 14px; font-weight: 600; }
    .my-exchange-time { font-size: 12px; color: var(--text-tertiary); }
    .my-exchange-body {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .my-exchange-stat { flex: 1; }
    .my-exchange-stat-label { font-size: 11px; color: var(--text-tertiary); }
    .my-exchange-stat-value { font-size: 16px; font-weight: 700; }
    .my-exchange-stat-value.points { color: var(--primary); }
    .my-exchange-stat-value.cash { color: var(--accent-green); }
    .my-exchange-status {
      padding: 3px 10px;
      border-radius: var(--radius-full);
      font-size: 11px;
      font-weight: 600;
    }
    .my-exchange-status.done { background: rgba(38,222,129,0.1); color: var(--accent-green); }
    .my-exchange-status.pending { background: rgba(255,184,0,0.1); color: #D4960A; }