
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    background: #e5e5e5;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    padding-right: calc(50vw + 20px); /* 预留右半边给固定的 feature-panel */
  }

  .phone-frame {
    width: 390px;
    height: 844px;
    background: #faf5f7;
    border-radius: 44px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* Status bar */
  .status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px 0;
    height: 54px;
    flex-shrink: 0;
  }
  .status-bar .time { font-size: 16px; font-weight: 700; color: #000; }
  .status-bar .icons { display: flex; gap: 6px; align-items: center; }
  .status-bar .icons svg { width: 18px; height: 12px; }

  /* Page header */
  .page-header {
    padding: 8px 20px 0;
    flex-shrink: 0;
  }
  .page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
  }

  /* Sub tabs */
  .sub-tabs {
    display: flex;
    padding: 12px 20px 0;
    flex-shrink: 0;
  }
  .sub-tab {
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #999;
    border: none;
    border-bottom: 2.5px solid transparent;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
  }
  .sub-tab.active {
    color: #d6336c;
    border-bottom-color: #d6336c;
  }
  .tab-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0 20px;
  }



  /* Swipe card area (hidden by default) */
  .swipe-view {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
  }
  .swipe-view.active { display: flex; }

  .card-area {
    flex: 1;
    padding: 14px 20px 0;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .profile-card {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  .profile-card.swiping-left {
    transform: translateX(-120%) rotate(-15deg);
    opacity: 0;
  }
  .profile-card.swiping-right {
    transform: translateX(120%) rotate(15deg);
    opacity: 0;
  }
  .profile-card .photo-bg {
    position: absolute;
    inset: 0;
  }
  .profile-card .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.55) 100%);
  }
  .photo-indicators {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    z-index: 2;
  }
  .photo-indicators .dot {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.35);
    border-radius: 2px;
  }
  .photo-indicators .dot.active { background: rgba(255,255,255,0.9); }
  .distance-badge {
    position: absolute;
    top: 24px;
    right: 16px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 2;
    backdrop-filter: blur(8px);
  }
  .swipe-profile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
  }
  .swipe-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
  }
  .swipe-name { font-size: 28px; font-weight: 800; color: #fff; }
  .swipe-verified {
    width: 22px; height: 22px;
    background: #2196F3;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .swipe-verified svg { width: 13px; height: 13px; }
  .swipe-detail { font-size: 15px; color: rgba(255,255,255,0.9); margin-bottom: 4px; }
  .swipe-bio { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
  .swipe-tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .swipe-tag {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
  }

  /* Swipe stamp overlays */
  .swipe-stamp {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 48px;
    font-weight: 900;
    padding: 10px 20px;
    border-radius: 12px;
    border-width: 5px;
    border-style: solid;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.15s;
  }
  .swipe-stamp.like {
    right: 30px;
    color: #34C759;
    border-color: #34C759;
    transform: translateY(-50%) rotate(15deg);
  }
  .swipe-stamp.nope {
    left: 30px;
    color: #FF3B30;
    border-color: #FF3B30;
  }

  .action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px 0 12px;
    flex-shrink: 0;
  }
  .action-btn {
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    cursor: pointer; border: none;
    transition: transform 0.15s;
  }
  .action-btn:active { transform: scale(0.9); }
  .action-btn.reject { width: 60px; height: 60px; background: #fff; }
  .action-btn.reject svg { width: 24px; height: 24px; color: #333; }
  .action-btn.super { width: 52px; height: 52px; background: #fff; }
  .action-btn.super svg { width: 22px; height: 22px; color: #FFB800; }
  .action-btn.like { width: 68px; height: 68px; background: linear-gradient(135deg, #e64980, #d6336c); }
  .action-btn.like svg { width: 30px; height: 30px; color: #fff; }

  /* Nearby Online list view */
  .list-view {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
  }
  .list-view.active { display: flex; }

  .user-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
  }
  .user-list::-webkit-scrollbar { display: none; }

  .user-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(214,51,108,0.08);
    transition: transform 0.15s;
  }
  .user-card:active { transform: scale(0.98); }

  .card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .avatar-wrap {
    position: relative;
    flex-shrink: 0;
  }
  .avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }
  .online-indicator {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 14px;
    height: 14px;
    background: #34C759;
    border-radius: 50%;
    border: 2.5px solid #fff;
  }

  .card-info {
    flex: 1;
    min-width: 0;
  }
  .name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
  }
  .user-name { font-size: 16px; font-weight: 700; color: #1a1a1a; }
  .user-age {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    background: #f0f0f5;
    padding: 1px 8px;
    border-radius: 10px;
  }
  .verified-icon {
    width: 16px; height: 16px;
    background: #2196F3;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .verified-icon svg { width: 10px; height: 10px; }

  .meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
  }
  .meta-item {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .meta-item svg { width: 12px; height: 12px; color: #bbb; flex-shrink: 0; }
  .meta-sep { color: #ddd; font-size: 12px; margin: 0 2px; }

  .bio-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .interest-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .interest-tag {
    font-size: 11px;
    font-weight: 600;
    color: #c2255c;
    background: #fff0f6;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
  }

  .card-action {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 4px;
  }
  .hi-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 22px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
  }
  .hi-btn svg { width: 14px; height: 14px; }
  .hi-btn.say-hi {
    background: linear-gradient(135deg, #e64980, #d6336c);
    color: #fff;
  }
  .hi-btn.say-hi:active { transform: scale(0.92); }
  .hi-btn.go-chat {
    background: #fff0f6;
    color: #c2255c;
  }

  /* Toast */
  .toast {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    white-space: nowrap;
  }
  .progress-toast {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    white-space: nowrap;
  }
  .progress-toast.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* Bottom tab bar */
  .tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 28px;
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
  }
  .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 56px;
    cursor: pointer;
  }
  .tab-item svg { width: 24px; height: 24px; }
  .tab-item span { font-size: 10px; font-weight: 500; color: #aaa; }
  .tab-item.active span { color: #d6336c; }
  .tab-item.active svg { color: #d6336c; }

  /* Red dot badge */
  .tab-item {
    position: relative;
  }
  .badge-dot {
    position: absolute;
    top: 0;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #FF3B30;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 5;
  }
  .badge-count {
    position: absolute;
    top: -4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: #FF3B30;
    border-radius: 9px;
    border: 2px solid #fff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    z-index: 5;
    line-height: 1;
  }
  /* Verify card red dot */
  .verify-card {
    position: relative;
  }
  .verify-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #FF3B30;
    border-radius: 50%;
    z-index: 5;
    animation: dotPulse 2s ease-in-out infinite;
  }
  @keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
  }

  /* Empty state */
  .empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    gap: 8px;
    padding: 40px;
  }
  .empty-state svg { width: 48px; height: 48px; color: #ddd; }
  .empty-state p { font-size: 14px; text-align: center; }

  /* ===== ME PAGE ===== */
  .me-page { display: none; flex-direction: column; flex: 1; overflow: hidden; }
  .me-page.active { display: flex; }
  /* ===== CHAT PAGE ===== */
  .chat-page { display: none; flex-direction: column; flex: 1; overflow: hidden; }
  .chat-page.active { display: flex; }
  .chat-page-header {
    padding: 8px 20px 0;
    flex-shrink: 0;
  }
  .chat-page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
  }
  .chat-sub-tabs {
    display: flex;
    padding: 12px 20px 0;
    flex-shrink: 0;
  }
  .chat-sub-tab {
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #999;
    border: none;
    border-bottom: 2.5px solid transparent;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
  }
  .chat-sub-tab.active {
    color: #d6336c;
    border-bottom-color: #d6336c;
  }
  .chat-sub-tab .tab-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    background: #FF3B30;
    border-radius: 9px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    vertical-align: middle;
  }

  /* Express avatar row */
  .express-view { display: none; flex-direction: column; flex: 1; overflow: hidden; }
  .express-view.active { display: flex; }
  .express-avatars {
    display: flex;
    gap: 16px;
    padding: 14px 20px 8px;
    overflow-x: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
  }
  .express-avatars::-webkit-scrollbar { display: none; }
  .express-avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 56px;
  }
  .express-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
  }
  .express-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    border: 3px solid transparent;
    transition: border-color 0.2s;
  }
  .express-avatar-item.selected .express-avatar-circle {
    border-color: #d6336c;
  }
  .express-avatar-online {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: #34C759;
    border-radius: 50%;
    border: 2px solid #faf5f7;
  }
  .express-avatar-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    background: #FF3B30;
    border-radius: 9px;
    border: 2px solid #faf5f7;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }
  .express-avatar-name {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
  }
  .express-avatar-item.selected .express-avatar-name {
    color: #d6336c;
    font-weight: 700;
  }

  /* Express chat area */
  .express-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 14px;
  }
  .express-user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
  }
  .express-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }
  .express-user-info { flex: 1; min-width: 0; }
  .express-user-name { font-size: 15px; font-weight: 700; color: #1a1a1a; }
  .express-user-stats { font-size: 12px; color: #999; }
  .express-urgency {
    background: #fff0f0;
    color: #FF3B30;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    animation: dotPulse 2s ease-in-out infinite;
  }

  .express-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .express-messages::-webkit-scrollbar { display: none; }
  .msg-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
  }
  .msg-bubble.them {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  .msg-bubble.me {
    align-self: flex-end;
    background: linear-gradient(135deg, #e64980, #d6336c);
    color: #fff;
    border-bottom-right-radius: 4px;
  }
  .msg-time {
    font-size: 11px;
    color: #bbb;
    margin-top: 2px;
  }
  .msg-time.them { align-self: flex-start; padding-left: 4px; }
  .msg-time.me { align-self: flex-end; padding-right: 4px; }

  /* Suggestion cards */
  .express-suggestions {
    padding: 8px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
  }
  .express-suggestions-label {
    font-size: 11px;
    color: #bbb;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .suggestion-card {
    background: #fff;
    border: 1.5px solid #f0e0e8;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .suggestion-card:active {
    transform: scale(0.97);
    background: #fff0f6;
    border-color: #d6336c;
  }
  .suggestion-card .send-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e64980, #d6336c);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .suggestion-card .send-icon svg { width: 12px; height: 12px; }
  .suggestion-card .s-text { flex: 1; line-height: 1.3; }

  /* My Picks view */
  .mypicks-view { display: none; flex-direction: column; flex: 1; overflow: hidden; }
  .mypicks-view.active { display: flex; }
  .mypicks-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px;
    -webkit-overflow-scrolling: touch;
  }
  .mypicks-list::-webkit-scrollbar { display: none; }
  .mypicks-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s;
  }
  .mypicks-item:active { background: #faf0f4; margin: 0 -20px; padding: 12px 20px; }
  .mypicks-item:last-child { border-bottom: none; }
  .mypicks-avatar-wrap {
    position: relative;
    flex-shrink: 0;
  }
  .mypicks-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
  }
  .mypicks-online {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: #34C759;
    border-radius: 50%;
    border: 2px solid #faf5f7;
  }
  .mypicks-content {
    flex: 1;
    min-width: 0;
  }
  .mypicks-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
  }
  .mypicks-name { font-size: 15px; font-weight: 700; color: #1a1a1a; }
  .mypicks-time { font-size: 12px; color: #bbb; flex-shrink: 0; }
  .mypicks-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .mypicks-msg {
    font-size: 13px;
    color: #999;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mypicks-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .mypicks-hearts {
    font-size: 11px;
    color: #e64980;
    font-weight: 600;
    white-space: nowrap;
  }
  .mypicks-unread {
    min-width: 20px;
    height: 20px;
    background: #FF3B30;
    border-radius: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
  }

  /* ===== TASK PAGE ===== */
  .task-page { display: none; flex-direction: column; flex: 1; overflow: hidden; }
  .task-page.active { display: flex; }
  .task-page-header { padding: 8px 20px 0; flex-shrink: 0; }
  .task-page-header h1 { font-size: 32px; font-weight: 800; color: #000; letter-spacing: -0.5px; }
  .task-scroll { flex: 1; overflow-y: auto; padding: 14px 20px; -webkit-overflow-scrolling: touch; }
  .task-scroll::-webkit-scrollbar { display: none; }

  /* Balance banner */
  .task-balance {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
  }
  .task-balance::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
  }
  .task-balance-label { font-size: 13px; opacity: 0.8; margin-bottom: 4px; }
  .task-balance-amount { font-size: 32px; font-weight: 800; }
  .task-balance-row { display: flex; justify-content: space-between; align-items: center; }
  .task-cashout-btn {
    background: #fff;
    color: #764ba2;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    z-index: 1;
  }
  .task-cashout-btn:active { transform: scale(0.95); }

  /* Social proof ticker */
  .task-ticker {
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  }
  .task-ticker .ticker-dot {
    width: 8px; height: 8px;
    background: #34C759;
    border-radius: 50%;
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
  }

  /* Onboarding card */
  .onboarding-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }
  .onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
  }
  .onboarding-title { font-size: 17px; font-weight: 800; color: #1a1a1a; }
  .onboarding-reward {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
  }
  .onboarding-progress {
    height: 4px;
    background: #f0f0f5;
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
  }
  .onboarding-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e64980, #d6336c);
    border-radius: 2px;
    transition: width 0.5s ease;
  }
  .task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
  }
  .task-item:last-child { border-bottom: none; }
  .task-check {
    width: 24px; height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .task-check.done {
    background: linear-gradient(135deg, #34C759, #2f9e44);
  }
  .task-check.done svg { width: 14px; height: 14px; }
  .task-check.current {
    background: linear-gradient(135deg, #e64980, #d6336c);
    animation: dotPulse 2s ease-in-out infinite;
  }
  .task-check.current::after {
    content: '';
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
  }
  .task-check.locked {
    background: #e8e8e8;
  }
  .task-check.locked::after {
    content: '';
    width: 6px; height: 6px;
    background: #ccc;
    border-radius: 50%;
  }
  .task-label { flex: 1; min-width: 0; }
  .task-label-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
  }
  .task-item.done .task-label-text {
    color: #999;
    text-decoration: line-through;
  }
  .task-item.locked .task-label-text { color: #ccc; }
  .task-go-btn {
    padding: 6px 16px;
    border-radius: 16px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .task-go-btn.active {
    background: linear-gradient(135deg, #e64980, #d6336c);
    color: #fff;
  }
  .task-go-btn.active:active { transform: scale(0.92); }
  .task-go-btn.disabled {
    background: #f0f0f5;
    color: #ccc;
    pointer-events: none;
  }

  /* Earn card */
  .earn-card {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 16px;
    padding: 18px;
    color: #fff;
    margin-bottom: 12px;
  }
  .earn-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
  .earn-card p { font-size: 13px; opacity: 0.85; margin-bottom: 12px; }
  .earn-card-btn {
    background: rgba(255,255,255,0.25);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(4px);
  }

  /* ===== CASHOUT PAGE ===== */
  .cashout-page { display: none; flex-direction: column; flex: 1; overflow: hidden; position: absolute; inset: 0; background: #faf5f7; z-index: 40; border-radius: 44px; }
  .cashout-page.active { display: flex; }
  .cashout-header {
    display: flex;
    align-items: center;
    padding: 60px 20px 10px;
    flex-shrink: 0;
  }
  .cashout-back {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .cashout-back svg { width: 20px; height: 20px; color: #333; }
  .cashout-title { flex: 1; text-align: center; font-size: 17px; font-weight: 700; color: #1a1a1a; margin-right: 32px; }
  .cashout-scroll { flex: 1; overflow-y: auto; padding: 10px 20px; -webkit-overflow-scrolling: touch; }
  .cashout-scroll::-webkit-scrollbar { display: none; }

  .cashout-balance-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    padding: 24px 20px;
    color: #fff;
    margin-bottom: 16px;
    text-align: center;
  }
  .cashout-balance-label { font-size: 13px; opacity: 0.8; margin-bottom: 4px; }
  .cashout-balance-val { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
  .cashout-balance-breakdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    opacity: 0.7;
  }

  .cashout-method {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  }
  .cashout-method-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    font-weight: 700;
  }
  .cashout-method-info { flex: 1; }
  .cashout-method-name { font-size: 14px; font-weight: 700; color: #1a1a1a; }
  .cashout-method-email { font-size: 12px; color: #999; }
  .cashout-method-check { color: #34C759; }

  .cashout-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 16px 0 10px;
  }
  .cashout-task-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  }
  .cashout-task-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
  }
  .cashout-task-name { font-size: 15px; font-weight: 700; color: #1a1a1a; }
  .cashout-task-amount { font-size: 17px; font-weight: 800; color: #34C759; }
  .cashout-task-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  .cashout-task-tag.signup { background: #e8f5e9; color: #2e7d32; }
  .cashout-task-tag.onboarding { background: #e3f2fd; color: #1565c0; }
  .cashout-task-btn {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
  }
  .cashout-task-btn:active { transform: scale(0.97); }
  .cashout-task-btn.available { background: linear-gradient(135deg, #34C759, #2f9e44); color: #fff; }
  .cashout-task-btn.locked { background: #f0f0f5; color: #999; pointer-events: none; }

  .cashout-tiers {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .cashout-tier {
    flex: 1;
    min-width: 60px;
    padding: 10px 0;
    text-align: center;
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
  }
  .cashout-tier.selected {
    border-color: #d6336c;
    background: #fff0f6;
    color: #d6336c;
  }
  .cashout-tier.disabled {
    opacity: 0.4;
    pointer-events: none;
  }
  .cashout-limit-note {
    font-size: 12px;
    color: #FF3B30;
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .cashout-withdraw-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #e64980, #d6336c);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
  }
  .cashout-withdraw-btn:active { transform: scale(0.97); }

  /* ===== CHAT DETAIL PAGE ===== */
  .chat-detail { display: none; flex-direction: column; position: absolute; inset: 0; background: #f0f0f5; z-index: 45; border-radius: 44px; overflow: hidden; }
  .chat-detail.active { display: flex; }
  .chat-detail-header {
    display: flex;
    align-items: center;
    padding: 56px 16px 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    gap: 10px;
  }
  .chat-detail-back {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
  }
  .chat-detail-back svg { width: 20px; height: 20px; color: #2196F3; }
  .chat-detail-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .chat-detail-info { flex: 1; min-width: 0; }
  .chat-detail-name { font-size: 16px; font-weight: 700; color: #1a1a1a; }
  .chat-detail-stats { font-size: 12px; color: #999; }
  .chat-detail-stats .stat-money { color: #2e7d32; font-weight: 600; }
  .chat-detail-stats .stat-hearts { color: #e64980; font-weight: 600; }

  /* Copilot toggle */
  .copilot-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .copilot-label { font-size: 13px; font-weight: 600; color: #555; }
  .copilot-switch {
    width: 46px; height: 26px;
    border-radius: 13px;
    background: #e0e0e0;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
  }
  .copilot-switch.on { background: #2196F3; }
  .copilot-switch::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.3s;
  }
  .copilot-switch.on::after { transform: translateX(20px); }

  /* Chat messages */
  .chat-detail-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .chat-detail-messages::-webkit-scrollbar { display: none; }
  .chat-date-divider {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    margin: 8px 0;
  }
  .detail-bubble {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
  }
  .detail-bubble.them {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
  }
  .detail-bubble.me {
    align-self: flex-end;
    background: #2196F3;
    color: #fff;
    border-bottom-right-radius: 4px;
  }
  .detail-bubble .earning-tag {
    display: none;
  }
  .earning-inline {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #2e7d32;
    margin-top: -2px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .earning-inline:active { transform: scale(0.95); background: #c8e6c9; }
  .earning-inline .ei-icon { font-size: 11px; }
  .earning-inline.unverified {
    background: linear-gradient(135deg, #fff0f6, #ffe0ec);
    color: #c2255c;
    border: 1px solid #fcc2d7;
  }
  .earning-inline.unverified::after {
    content: ' ›';
    font-weight: 800;
  }


  /* ===== WELCOME MATCH MODAL ===== */
  .welcome-match-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 58;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 100px;
    backdrop-filter: blur(4px);
  }
  .welcome-match-overlay.show { display: flex; }
  .welcome-match-modal {
    background: #fff;
    border-radius: 20px;
    width: 320px;
    padding: 28px 24px;
    position: relative;
    animation: modalIn 0.3s ease;
    overflow: hidden;
  }
  .welcome-match-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #f0f0f5;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 14px; color: #999;
    z-index: 2;
  }
  .welcome-match-icon {
    text-align: center;
    font-size: 40px;
    margin-bottom: 8px;
  }
  .welcome-match-modal h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 6px;
    line-height: 1.4;
  }
  .welcome-step-sub {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
  }
  .welcome-steps-track {
    position: relative;
    min-height: 120px;
  }
  .welcome-step {
    display: none;
    flex-direction: column;
    gap: 6px;
    animation: fadeSlideIn 0.25s ease;
  }
  .welcome-step.active { display: flex; }
  @keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
  }
  .welcome-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
  }
  .welcome-rule-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .welcome-rule-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
  }
  .welcome-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
  }
  .welcome-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.25s;
  }
  .welcome-dot.active {
    background: #e64980;
    width: 20px;
    border-radius: 4px;
  }
  .welcome-try-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #e64980, #d6336c);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
    transition: transform 0.15s;
  }
  .welcome-try-btn:active { transform: scale(0.97); }
  /* ===== REPLY COUNTDOWN ===== */
  .reply-countdown {
    padding: 8px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    display: none;
  }
  .reply-countdown.show { display: block; }
  .rc-bar-wrap {
    height: 4px;
    background: #f0f0f5;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
  }
  .rc-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #34C759, #FFD700, #FF3B30);
    border-radius: 2px;
    transition: width 1s linear;
  }
  .rc-text {
    font-size: 11px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .rc-timer { font-weight: 700; color: #FF3B30; font-size: 13px; }

  /* ===== TWO-CHOICE SUGGESTIONS (My Picks) ===== */
  .mp-suggestions {
    padding: 8px 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
  }
  .mp-suggestions.show { display: flex; }
  .mp-sug-label {
    font-size: 11px;
    color: #bbb;
    font-weight: 600;
  }
  .mp-sug-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
    padding: 10px 0;
  }
  .mp-sug-dots {
    display: inline-flex;
    gap: 3px;
  }
  .mp-sug-dots span {
    width: 6px; height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: dotBounce 1.2s infinite;
  }
  .mp-sug-dots span:nth-child(2) { animation-delay: 0.2s; }
  .mp-sug-dots span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
  }
  .mp-sug-card {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mp-sug-card:active {
    transform: scale(0.97);
    background: #f0f7ff;
    border-color: #2196F3;
  }
  .mp-sug-card .sug-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #2196F3;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  /* ===== FLOATING NEXT/DONE BUTTON ===== */
  .float-next-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
  }
  .float-next-btn.show { display: flex; }
  .float-next-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.15s;
    position: relative;
  }
  .float-next-circle:active { transform: scale(0.9); }
  .float-next-circle.next-style {
    background: linear-gradient(135deg, #2196F3, #1976D2);
  }
  .float-next-circle.done-style {
    background: linear-gradient(135deg, #34C759, #2f9e44);
  }
  .float-next-circle svg { width: 20px; height: 20px; color: #fff; }
  .float-next-label {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  }
  .float-next-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #FF3B30;
    border-radius: 50%;
    border: 2px solid #fff;
  }

  /* ===== EARNING RULES MODAL ===== */
  .earn-rules-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 62;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }
  .earn-rules-overlay.show { display: flex; }
  .earn-rules-modal {
    background: #fff;
    border-radius: 20px;
    width: 300px;
    padding: 24px;
    animation: modalIn 0.3s ease;
  }
  .earn-rules-modal h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
  }
  .earn-rule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
  }
  .earn-rule-row:last-child { border-bottom: none; }
  .earn-rule-time { font-size: 13px; color: #666; }
  .earn-rule-amount { font-size: 14px; font-weight: 700; color: #2e7d32; }
  .earn-rule-amount.zero { color: #999; }
  .earn-rules-close {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: none;
    border-radius: 14px;
    background: #f0f0f5;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .detail-time {
    font-size: 11px;
    color: #bbb;
    margin-top: 2px;
    margin-bottom: 4px;
  }
  .detail-time.them { align-self: flex-start; padding-left: 4px; }
  .detail-time.me { align-self: flex-end; padding-right: 4px; }

  /* Input bar */
  .chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 30px;
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
  }
  .chat-input-bar .input-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: #999; cursor: pointer; flex-shrink: 0;
  }
  .chat-input-bar .input-icon svg { width: 20px; height: 20px; }
  .chat-input-field {
    flex: 1;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1.5px solid #e8e8e8;
    font-size: 14px;
    outline: none;
    background: #f8f8f8;
    color: #333;
  }
  .chat-input-field:focus { border-color: #2196F3; background: #fff; }
  .chat-send-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #2196F3;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
  }
  .chat-send-btn svg { width: 16px; height: 16px; color: #fff; }

  /* Earning tail notification */
  .earning-tail {
    position: absolute;
    bottom: 70px;
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 10;
    animation: guideFadeIn 0.3s ease;
  }
  .earning-tail.show { display: flex; }
  .earning-tail .et-amount {
    font-size: 16px;
    font-weight: 800;
    color: #2e7d32;
    flex-shrink: 0;
  }
  .earning-tail .et-nudge {
    font-size: 12px;
    color: #e67700;
    font-weight: 600;
    flex: 1;
    line-height: 1.3;
  }
  .earning-tail .et-verify-btn {
    padding: 5px 12px;
    background: linear-gradient(135deg, #e64980, #d6336c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Copilot modal */
  .copilot-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }
  .copilot-modal-overlay.show { display: flex; }
  .copilot-modal {
    background: #fff;
    border-radius: 20px;
    width: 310px;
    padding: 28px 24px;
    text-align: center;
    animation: modalIn 0.3s ease;
  }
  .copilot-modal-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #e8f0fe;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
  }
  .copilot-modal-icon svg { width: 28px; height: 28px; color: #2196F3; }
  .copilot-modal h3 { font-size: 19px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
  .copilot-modal p { font-size: 14px; color: #888; line-height: 1.5; margin-bottom: 20px; }
  .copilot-confirm-btn {
    width: 100%; padding: 14px;
    border: none; border-radius: 14px;
    background: #2196F3; color: #fff;
    font-size: 16px; font-weight: 700;
    cursor: pointer; margin-bottom: 10px;
  }
  .copilot-confirm-btn:active { transform: scale(0.97); }
  .copilot-cancel-btn {
    width: 100%; padding: 12px;
    border: none; border-radius: 14px;
    background: #f0f0f5; color: #666;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
  }

  /* ===== LIVE PAGE ===== */
  .live-page { display: none; flex-direction: column; flex: 1; overflow: hidden; position: relative; }
  .live-page.active { display: flex; }
  .live-camera-bg {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 0;
  }
  .live-camera-face {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -60%);
    width: 140px; height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a87c, #e0c9a6);
    opacity: 0.3;
    border: 3px solid rgba(255,255,255,0.15);
  }
  .live-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 20px 0;
  }
  .live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 10px;
  }
  .live-header h2 { font-size: 24px; font-weight: 800; color: #fff; }
  .live-beauty-btn {
    display: flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 16px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }
  .live-callbacks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 16px;
  }
  .callback-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .callback-card:active { background: rgba(255,255,255,0.2); }
  .callback-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .callback-info { flex: 1; }
  .callback-name { font-size: 14px; font-weight: 700; color: #fff; }
  .callback-earn { font-size: 12px; color: rgba(255,255,255,0.7); }
  .callback-btn {
    padding: 6px 14px;
    background: #34C759;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .live-bottom {
    padding: 0 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .go-online-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #34C759, #2f9e44);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(52,199,89,0.4);
    transition: transform 0.15s;
  }
  .go-online-btn:active { transform: scale(0.97); }
  .go-online-btn.active-online {
    background: linear-gradient(135deg, #FF3B30, #cc2f27);
    box-shadow: 0 4px 20px rgba(255,59,48,0.4);
  }
  .live-earning-rate {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
  }

  /* Go Online unlock modal */
  .goonline-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 58;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }
  .goonline-modal-overlay.show { display: flex; }
  .goonline-modal {
    background: #fff;
    border-radius: 20px;
    width: 310px;
    padding: 28px 24px;
    text-align: center;
    animation: modalIn 0.3s ease;
  }
  .goonline-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34C759, #2f9e44);
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
  }
  .goonline-modal h3 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
  .goonline-modal p { font-size: 14px; color: #888; line-height: 1.5; margin-bottom: 6px; }
  .goonline-rate {
    font-size: 28px;
    font-weight: 800;
    color: #2f9e44;
    margin: 10px 0 16px;
  }
  .goonline-btn {
    width: 100%; padding: 14px;
    border: none; border-radius: 14px;
    background: linear-gradient(135deg, #34C759, #2f9e44);
    color: #fff;
    font-size: 16px; font-weight: 700;
    cursor: pointer; margin-bottom: 8px;
  }
  .goonline-btn:active { transform: scale(0.97); }
  .goonline-skip {
    width: 100%; padding: 12px;
    border: none; border-radius: 14px;
    background: #f0f0f5; color: #666;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
  }

  /* ===== LIMIT MODAL ===== */
  .limit-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 55;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }
  .limit-modal-overlay.show { display: flex; }
  .limit-modal {
    background: #fff;
    border-radius: 20px;
    width: 300px;
    padding: 28px 24px;
    text-align: center;
    animation: modalIn 0.3s ease;
  }
  .limit-modal-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
  }
  .limit-modal h3 { font-size: 18px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
  .limit-modal p { font-size: 14px; color: #888; line-height: 1.5; margin-bottom: 18px; }
  .limit-modal-btn {
    width: 100%; padding: 12px;
    border: none; border-radius: 14px;
    font-size: 15px; font-weight: 700;
    cursor: pointer; margin-bottom: 8px;
  }
  .limit-modal-btn.primary { background: linear-gradient(135deg, #e64980, #d6336c); color: #fff; }
  .limit-modal-btn.secondary { background: #f0f0f5; color: #666; }

  /* ===== TASK COMPLETE MODAL ===== */
  .task-complete-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 58;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }
  .task-complete-overlay.show { display: flex; }
  .task-complete-modal {
    background: #fff;
    border-radius: 20px;
    width: 310px;
    padding: 28px 24px;
    text-align: center;
    animation: modalIn 0.3s ease;
  }
  .tc-check {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34C759, #2f9e44);
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    animation: tcPop 0.4s ease;
  }
  @keyframes tcPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }
  .tc-check svg { width: 32px; height: 32px; }
  .task-complete-modal h3 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 6px; }
  .tc-task-name { font-size: 14px; color: #666; margin-bottom: 16px; }
  .tc-progress-wrap { margin-bottom: 8px; }
  .tc-progress-bar {
    height: 8px;
    background: #f0f0f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
  }
  .tc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 4px;
    transition: width 0.6s ease;
  }
  .tc-progress-text {
    font-size: 13px;
    color: #999;
  }
  .tc-progress-text strong { color: #e67700; }
  .tc-reward {
    background: linear-gradient(135deg, #fffbeb, #fff3cd);
    border: 1.5px solid #ffe082;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 12px 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: #e67700;
  }
  .tc-reward .tc-amount { font-size: 20px; }
  .tc-btn {
    width: 100%; padding: 14px;
    border: none; border-radius: 14px;
    font-size: 16px; font-weight: 700;
    cursor: pointer; margin-bottom: 8px;
  }
  .tc-btn:active { transform: scale(0.97); }
  .tc-btn.next { background: linear-gradient(135deg, #e64980, #d6336c); color: #fff; }
  .tc-btn.done { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
  .tc-btn.close { background: #f0f0f5; color: #666; }

  /* ===== GUIDE TOOLTIP ===== */
  .guide-tip {
    position: absolute;
    top: 120px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    z-index: 30;
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(102,126,234,0.4);
    animation: guideFadeIn 0.4s ease;
  }
  .guide-tip.show { display: flex; }
  @keyframes guideFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .guide-tip .guide-icon { font-size: 22px; flex-shrink: 0; }
  .guide-tip .guide-text { flex: 1; line-height: 1.4; }
  .guide-tip .guide-close {
    width: 24px; height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    font-size: 14px;
  }
  .me-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .me-scroll::-webkit-scrollbar { display: none; }
  .me-cover {
    height: 200px;
    background: linear-gradient(135deg, #7b8fa1 0%, #5a7a8a 50%, #8a9dad 100%);
    position: relative;
  }
  .me-cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 100%);
  }
  .me-header-bar {
    position: absolute;
    top: 10px; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }
  .me-header-bar h2 { font-size: 26px; font-weight: 800; color: #fff; }
  .me-header-icons { display: flex; gap: 14px; }
  .me-header-icons svg { width: 24px; height: 24px; color: #fff; }
  .me-profile-section {
    position: relative;
    padding: 0 20px;
    margin-top: -45px;
  }
  .me-profile-top {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 12px;
  }
  .me-avatar-container {
    position: relative;
    width: 86px; height: 86px;
    flex-shrink: 0;
  }
  .me-avatar-ring { position: absolute; inset: 0; }
  .me-avatar-ring svg { width: 86px; height: 86px; }
  .me-avatar-img {
    position: absolute;
    top: 5px; left: 5px;
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a87c, #e0c9a6);
    border: 3px solid #fff;
  }
  .me-completion {
    position: absolute;
    bottom: -2px; left: 50%;
    transform: translateX(-50%);
    background: #34C759;
    color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
  }
  .me-avatar-verified {
    display: none;
    position: absolute;
    top: 0; right: 0;
    width: 24px; height: 24px;
    background: #2196F3;
    border-radius: 50%;
    border: 2.5px solid #fff;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }
  .me-avatar-verified svg { width: 13px; height: 13px; }
  .me-avatar-container.is-verified .me-avatar-verified { display: flex; }

  .me-info { flex: 1; padding-bottom: 6px; }
  .me-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
  }
  .me-name { font-size: 22px; font-weight: 800; color: #fff; }
  .me-level {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #FFD700;
  }
  .me-id { font-size: 13px; color: rgba(255,255,255,0.8); }

  .me-info-rows { padding: 8px 20px 0; }
  .me-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
  }
  .me-info-row svg { width: 18px; height: 18px; flex-shrink: 0; }
  .me-add-link {
    font-size: 14px; color: #333;
    display: flex; align-items: center;
    gap: 6px; margin-bottom: 6px;
  }
  .me-add-tags {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px; color: #666;
    background: #f0f0f5;
    padding: 5px 12px;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  /* Verify card */
  .verify-card {
    margin: 12px 20px;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.15s;
  }
  .verify-card:active { transform: scale(0.98); }
  .verify-card.unverified {
    background: linear-gradient(135deg, #fff5f5, #fff0f6);
    border: 1.5px solid #fcc2d7;
  }
  .verify-card.verified {
    background: linear-gradient(135deg, #e6fcf5, #d3f9d8);
    border: 1.5px solid #8ce99a;
  }
  .verify-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .verify-card.unverified .verify-icon-wrap { background: linear-gradient(135deg, #e64980, #d6336c); }
  .verify-card.verified .verify-icon-wrap { background: linear-gradient(135deg, #37b24d, #2f9e44); }
  .verify-icon-wrap svg { width: 22px; height: 22px; }
  .verify-content { flex: 1; min-width: 0; }
  .verify-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
  .verify-card.unverified .verify-title { color: #c2255c; }
  .verify-card.verified .verify-title { color: #2b8a3e; }
  .verify-desc { font-size: 12px; line-height: 1.3; }
  .verify-card.unverified .verify-desc { color: #e8768d; }
  .verify-card.verified .verify-desc { color: #69a67a; }
  .verify-boost {
    background: #FFD700;
    color: #7c5e00;
    font-size: 11px; font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
  }
  .verify-arrow { flex-shrink: 0; }
  .verify-card.unverified .verify-arrow { color: #d6336c; }
  .verify-card.verified .verify-arrow { color: #2b8a3e; }
  .verify-arrow svg { width: 18px; height: 18px; }
  .verified-label {
    font-size: 11px; font-weight: 700;
    color: #2b8a3e;
    background: rgba(43,138,62,0.1);
    padding: 2px 8px;
    border-radius: 8px;
  }

  /* Earnings */
  .me-earnings {
    margin: 8px 20px;
    background: #fffbeb;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .me-earnings-left {
    display: flex; align-items: center;
    gap: 8px; font-size: 15px; font-weight: 600; color: #333;
  }
  .me-earnings-right {
    display: flex; align-items: center;
    gap: 4px; font-size: 17px; font-weight: 800; color: #e67700;
  }
  .me-earnings-right svg { width: 16px; height: 16px; color: #ccc; }

  /* Posts */
  .me-posts { padding: 16px 20px; }
  .me-post-header {
    display: flex; align-items: center;
    gap: 10px; margin-bottom: 10px;
  }
  .me-post-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a87c, #e0c9a6);
  }
  .me-post-name { font-size: 15px; font-weight: 600; color: #333; }
  .me-post-img {
    width: 260px; height: 260px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0ddd0, #e8cfc0);
    margin-bottom: 12px;
  }
  .me-no-more {
    text-align: center;
    font-size: 14px; color: #ccc;
    padding: 10px 0;
  }

  /* Modal */
  .modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }
  .modal-overlay.show { display: flex; }
  .modal {
    background: #fff;
    border-radius: 20px;
    width: 320px;
    padding: 28px 24px;
    text-align: center;
    animation: modalIn 0.3s ease;
  }
  @keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  .modal-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
  }
  .modal-icon.pending { background: linear-gradient(135deg, #e64980, #d6336c); }
  .modal-icon.success { background: linear-gradient(135deg, #37b24d, #2f9e44); }
  .modal-icon svg { width: 32px; height: 32px; }
  .modal h3 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
  .modal p { font-size: 14px; color: #888; line-height: 1.5; margin-bottom: 20px; }
  .modal .benefits { text-align: left; margin-bottom: 20px; }
  .benefit-item {
    display: flex; align-items: center;
    gap: 10px; padding: 8px 0;
    font-size: 14px; color: #333;
  }
  .benefit-item .b-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 18px;
  }
  .benefit-item .b-label { font-weight: 600; }
  .benefit-item .b-desc { font-size: 12px; color: #999; }
  .modal-btn {
    width: 100%; padding: 14px;
    border: none; border-radius: 14px;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
  }
  .modal-btn:active { transform: scale(0.97); }
  .modal-btn.primary {
    background: linear-gradient(135deg, #e64980, #d6336c);
    color: #fff; margin-bottom: 10px;
  }
  .modal-btn.success-btn {
    background: linear-gradient(135deg, #37b24d, #2f9e44);
    color: #fff;
  }
  .modal-btn.secondary { background: #f0f0f5; color: #666; }

  /* ===== PRODUCT FEATURE PANEL (right side) ===== */
  .feature-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50vw;
    height: 100vh;
    background: #fff;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
  }
  .fp-title { font-size: 20px; font-weight: 800; color: #1a1a1a; letter-spacing: -0.3px; }
  .fp-title small { font-size: 12px; font-weight: 600; color: #999; margin-left: 8px; }
  .fp-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1.5px solid #eee;
    background: #fafafa;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
  }
  .fp-content { flex: 1; display: flex; flex-direction: column; gap: 16px; }
  .fp-content::-webkit-scrollbar { display: none; }
  .fp-section {
    position: relative;
    width: 100%;
    height: 200px;
    border: 1px solid #f0f0f5;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
  }
  .fp-section-head { display: flex; align-items: center; gap: 8px; padding-right: 40px; flex-shrink: 0; }
  .fp-section-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .fp-section-title { font-size: 14px; font-weight: 800; color: #1a1a1a; }
  .fp-enlarge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fafafa;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
  }
  .fp-enlarge:hover { background: #e64980; color: #fff; border-color: transparent; }
  .fp-section-body { flex: 1; overflow-y: auto; font-size: 13px; color: #555; line-height: 1.6; margin-top: 8px; }
  .fp-section-body ul { list-style: none; }
  .fp-section-body li { padding: 4px 0; border-bottom: 1px dashed #f0f0f5; }
  .fp-section-body li:last-child { border-bottom: none; }
  .fp-li-key { color: #1a1a1a; font-weight: 700; }
  .fp-api { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #475467; line-height: 1.5; }
  .fp-api .method { font-weight: 800; }
  .fp-api .method.get { color: #2196F3; }
  .fp-api .method.post { color: #34C759; }
  .fp-api .method.del { color: #FF3B30; }

  /* Fullscreen modal */
  .fp-modal { position: fixed; inset: 0; background: #fff; z-index: 1000; display: none; flex-direction: column; padding: 24px 32px; }
  .fp-modal.open { display: flex; }
  .fp-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .fp-modal-title { font-size: 20px; font-weight: 800; color: #1a1a1a; display: flex; align-items: center; gap: 8px; }
  .fp-modal-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #eee; background: #fafafa; color: #333; font-size: 20px; cursor: pointer; }
  .fp-modal-close:hover { background: #e64980; color: #fff; }
  .fp-modal-body { flex: 1; overflow-y: auto; font-size: 15px; color: #333; line-height: 1.8; }
  .fp-modal-body ul { list-style: none; }
  .fp-modal-body li { padding: 8px 0; border-bottom: 1px dashed #eee; }
  .fp-modal-body li:last-child { border-bottom: none; }
  .fp-modal-body.fp-api { font-size: 14px; }

  @media (max-width: 820px) {
    body { padding-right: 20px; }
    .feature-panel { position: static; width: 100%; height: auto; }
  }
