  /* ===== Wallet & Charge ===== */
  .wallet-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px 4px;
  }
  .wallet-header .icon-btn { color: var(--ink-900); }
  .wallet-title { font-size: 17px; font-weight: 800; }
  .wallet-balance-card {
    margin: 12px 20px 16px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--coral-500) 0%, #5B3CE0 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(14, 165, 233,0.35);
  }
  .wallet-balance-label { font-size: 13px; opacity: 0.85; font-weight: 600; }
  .wallet-balance-value { font-size: 32px; font-weight: 800; margin-top: 6px; letter-spacing: 0; }
  .wallet-balance-cta {
    margin-top: 14px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
  }
  .wallet-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-500);
    padding: 0 24px 8px;
  }
  .tx-list {
    margin: 0 20px 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
  }
  .tx-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #F2F2F7;
  }
  .tx-item:last-child { border-bottom: none; }
  .tx-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
  }
  .tx-icon.charge { background: rgba(14, 165, 233,0.13); color: var(--coral-500); }
  .tx-icon.spend  { background: rgba(6, 194, 144,0.12); color: var(--mint-500); }
  .tx-icon.event  { background: rgba(255,180,0,0.15);  color: #B88600; }
  .tx-body { flex: 1; min-width: 0; }
  .tx-label { font-size: 14px; font-weight: 600; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tx-when  { font-size: 11px; color: var(--ink-500); margin-top: 2px; }
  .tx-delta { font-size: 14px; font-weight: 800; white-space: nowrap; }
  .tx-delta.plus  { color: var(--coral-500); }
  .tx-delta.minus { color: var(--ink-900); }
  .tx-empty { text-align: center; padding: 30px; color: var(--ink-500); font-size: 13px; }

  /* Charge screen */
  .charge-summary {
    margin: 8px 20px 16px;
    padding: 14px 16px;
    background: var(--surface-mute);
    border-radius: 14px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .charge-summary-label { font-size: 12px; color: var(--ink-500); font-weight: 600; }
  .charge-summary-value { font-size: 16px; font-weight: 800; color: var(--ink-900); }
  .pkg-grid {
    margin: 0 20px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .pkg-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 14px 12px 12px;
    cursor: pointer;
    position: relative;
    text-align: center;
    transition: border-color 0.15s, transform 0.1s;
  }
  .pkg-card:active { transform: scale(0.98); }
  .pkg-card.selected {
    border-color: var(--coral-500);
    background: linear-gradient(180deg, #F0F9FF 0%, #FFF 100%);
    box-shadow: 0 4px 14px rgba(14, 165, 233,0.18);
  }
  .pkg-tag {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    background: var(--mint-500); color: #fff;
    font-size: 10px; font-weight: 800;
    padding: 3px 10px; border-radius: 999px;
    letter-spacing: 0.3px;
  }
  .pkg-coins { font-size: 18px; font-weight: 800; color: var(--ink-900); }
  .pkg-coins .coin-emoji { font-size: 16px; margin-left: 2px; }
  .pkg-bonus { font-size: 11px; color: var(--mint-500); font-weight: 700; margin-top: 4px; min-height: 14px; }
  .pkg-price { font-size: 13px; color: var(--ink-500); font-weight: 700; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }

  .pay-list {
    margin: 0 20px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
  }
  .pay-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #F2F2F7;
  }
  .pay-item:last-child { border-bottom: none; }
  .pay-emoji {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-mute); font-size: 18px;
  }
  .pay-label { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink-900); }
  .pay-radio {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #D6D6E0;
    display: flex; align-items: center; justify-content: center;
  }
  .pay-radio.active { border-color: var(--coral-500); }
  .pay-radio.active::after {
    content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--coral-500);
  }
  .charge-notice {
    margin: 0 20px 16px;
    padding: 12px 14px;
    background: #FFF7E6;
    border-radius: 12px;
    font-size: 11.5px;
    color: #8A6300;
    line-height: 1.5;
  }
  .charge-cta-wrap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 12px 20px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 30%);
  }
  .charge-cta {
    width: 100%;
    background: var(--coral-500);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
  }
  .charge-cta:disabled { background: #BAE6FD; cursor: not-allowed; }

  /* ===== Toast variants ===== */
  .hint { background: rgba(26,26,36,0.92); }
  .hint.success { background: var(--mint-500); color: #fff; }
  .hint.error   { background: #EF4444; color: #fff; }
  .hint.info    { background: var(--coral-500); color: #fff; }

  /* ===== Empty state ===== */
  .empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 24px; gap: 12px;
  }
  .empty-emoji { font-size: 48px; opacity: 0.6; }
  .empty-title { font-size: 15px; font-weight: 700; color: var(--ink-500); }
  .empty-sub { font-size: 12px; color: var(--ink-500); text-align: center; line-height: 1.5; }
  .empty-cta {
    margin-top: 8px;
    background: var(--coral-500); color: #fff; border: none;
    padding: 10px 20px; border-radius: 999px;
    font-size: 13px; font-weight: 700; cursor: pointer;
  }

  /* Keep screen containers visually stable during frequent re-renders. */

  /* ===== Search screen ===== */
  .search-bar-wrap {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px 12px;
  }
  .search-back {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex-shrink: 0; padding: 8px;
    background: #F4F4F8; color: var(--ink-900); border-radius: 999px;
    cursor: pointer;
  }
  .search-back svg { width: 20px; height: 20px; stroke: var(--ink-900); }
  .search-input-wrap {
    flex: 1;
    display: flex; align-items: center; gap: 8px;
    background: #F2F2F7;
    border-radius: 12px;
    padding: 10px 14px;
  }
  .search-input-wrap svg { width: 18px; height: 18px; color: var(--ink-500); }
  .search-input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 14px; color: var(--ink-900);
  }
  .search-section-title {
    font-size: 13px; font-weight: 700; color: var(--ink-500);
    padding: 14px 20px 8px;
  }
  .search-chips {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px;
  }
  .search-chip {
    background: #F0F9FF; color: var(--coral-500);
    padding: 8px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600; cursor: pointer;
  }
  .search-recent {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; cursor: pointer;
  }
  .search-recent:hover { background: var(--surface-mute); }
  .search-recent-icon { color: var(--ink-500); font-size: 14px; }
  .search-recent-text { flex: 1; font-size: 14px; color: var(--ink-900); }
  .search-recent-x { color: #C0C0CE; padding: 4px; cursor: pointer; }

  /* ===== Notifications screen ===== */
  .notif-list { margin: 0 20px; }
  .notif-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #F2F2F7;
    cursor: pointer;
  }
  .notif-item.unread::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--mint-500); margin-top: 6px; flex-shrink: 0;
  }
  .notif-item.read::before {
    content: ''; width: 8px; height: 8px; flex-shrink: 0;
  }
  .notif-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
  }
  .notif-icon.order  { background: rgba(14, 165, 233,0.13); }
  .notif-icon.chat   { background: rgba(34,197,94,0.13); }
  .notif-icon.event  { background: rgba(255,180,0,0.18); }
  .notif-icon.system { background: rgba(107,107,122,0.13); }
  .notif-body { flex: 1; min-width: 0; }
  .notif-title { font-size: 14px; font-weight: 700; color: var(--ink-900); }
  .notif-msg { font-size: 12.5px; color: var(--ink-500); margin-top: 3px; }
  .notif-when { font-size: 11px; color: var(--ink-500); margin-top: 4px; }
  .notif-header-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 8px 8px 20px;
  }
  .notif-mark-read {
    color: var(--coral-500); font-size: 13px; font-weight: 700;
    background: none; border: none; cursor: pointer; padding: 8px;
  }

  /* ===== Order history screen ===== */
  .order-tabs {
    display: flex; gap: 4px;
    padding: 4px 16px 12px;
    border-bottom: 1px solid #F2F2F7;
  }
  .order-tab {
    flex: 1; padding: 10px 0; text-align: center;
    font-size: 13.5px; font-weight: 700; color: var(--ink-500);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s;
  }
  .order-tab.active { color: var(--coral-500); border-bottom-color: var(--coral-500); }
  .order-card {
    margin: 12px 20px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 16px; padding: 14px;
  }
  .order-card-top {
    display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
  }
  .order-card-name { font-size: 14px; font-weight: 700; }
  .order-card-when { font-size: 11px; color: var(--ink-500); margin-top: 2px; }
  .order-card-status {
    margin-left: auto; padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800;
  }
  .order-card-status.ongoing   { background: rgba(14, 165, 233,0.13); color: var(--coral-500); }
  .order-card-status.completed { background: rgba(34,197,94,0.13);  color: #16A34A; }
  .order-card-status.cancelled { background: rgba(160,160,174,0.18); color: var(--ink-500); }
  .order-card-body {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px; border-top: 1px dashed var(--border);
    font-size: 13px;
  }
  .order-card-actions {
    display: flex; gap: 8px; margin-top: 12px;
  }
  .order-card-btn {
    flex: 1; padding: 9px; border-radius: 10px;
    font-size: 12.5px; font-weight: 700; cursor: pointer;
    border: 1px solid var(--border); background: #fff; color: var(--ink-900);
  }
  .order-card-btn.primary { background: var(--coral-500); color: #fff; border-color: var(--coral-500); }

  /* ===== Favorites grid ===== */
  .fav-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; padding: 12px 20px;
  }
  .fav-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; cursor: pointer;
    position: relative;
  }
  .fav-card-img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
  }
  .fav-card-body { padding: 10px 12px; }
  .fav-card-name { font-size: 13.5px; font-weight: 700; }
  .fav-card-sub { font-size: 11px; color: var(--ink-500); margin-top: 2px; }
  .fav-card-heart {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px;
  }

  /* ===== Review write ===== */
  .review-stars { display: flex; justify-content: center; gap: 10px; padding: 20px 0 12px; }
  .review-star {
    font-size: 36px; cursor: pointer;
    filter: grayscale(1) opacity(0.4);
    transition: filter 0.1s, transform 0.1s;
  }
  .review-star.on { filter: none; transform: scale(1.05); }
  .review-rating-label { text-align: center; font-size: 13px; color: var(--ink-500); padding-bottom: 16px; }
  .review-textarea {
    width: calc(100% - 40px); margin: 0 20px;
    border: 1px solid var(--border); border-radius: 12px;
    padding: 12px; font-size: 14px; font-family: inherit;
    min-height: 120px; resize: none; outline: none;
  }
  .review-textarea:focus { border-color: var(--coral-500); }
  .review-submit {
    margin: 16px 20px; padding: 14px; width: calc(100% - 40px);
    background: var(--coral-500); color: #fff; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 800; cursor: pointer;
  }
  .review-submit:disabled { background: #BAE6FD; cursor: not-allowed; }

  /* ===== Story compose ===== */
  .compose-textarea {
    width: calc(100% - 40px); margin: 8px 20px;
    border: none; outline: none;
    padding: 4px; font-size: 16px; font-family: inherit;
    min-height: 140px; resize: none;
    background: transparent; color: var(--ink-900);
  }
  .compose-textarea::placeholder { color: #C0C0CE; }
  .compose-counter {
    padding: 0 24px 8px; font-size: 12px; color: var(--ink-500); text-align: right;
  }
  .compose-tag-section {
    border-top: 1px solid #F2F2F7;
    padding: 14px 20px 8px;
  }
  .compose-tag-title { font-size: 13px; font-weight: 700; color: var(--ink-500); margin-bottom: 10px; }
  .compose-tag-row {
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .compose-tag-chip {
    display: flex; align-items: center; gap: 4px;
    padding: 7px 12px; border-radius: 999px;
    background: #F2F2F7; color: var(--ink-500);
    font-size: 12px; font-weight: 600; cursor: pointer;
    border: 1.5px solid transparent;
  }
  .compose-tag-chip.selected {
    background: #F0F9FF; color: var(--coral-500); border-color: var(--coral-500);
  }
  .compose-submit {
    margin: 16px 20px; padding: 14px; width: calc(100% - 40px);
    background: var(--coral-500); color: #fff; border: none; border-radius: 14px;
    font-size: 15px; font-weight: 800; cursor: pointer;
  }
  .compose-submit:disabled { background: #BAE6FD; cursor: not-allowed; }

  /* ===== Story comments ===== */
  .comments-header {
    text-align: center; padding: 6px 0 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px; font-weight: 700; color: var(--ink-900);
  }
  .comment-item {
    display: flex; gap: 10px; padding: 12px 20px;
  }
  .comment-body { flex: 1; min-width: 0; }
  .comment-top {
    display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px;
  }
  .comment-name { font-size: 13px; font-weight: 700; color: var(--ink-900); }
  .comment-when { font-size: 11px; color: var(--ink-500); }
  .comment-text { font-size: 13.5px; color: var(--ink-900); line-height: 1.4; }
  .comment-input-wrap {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; gap: 8px; align-items: center;
    padding: 10px 16px 16px;
    background: #fff;
    border-top: 1px solid var(--border);
  }
  .comment-input {
    flex: 1; border: none; outline: none;
    background: #F2F2F7;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px; color: var(--ink-900);
  }
  .comment-send {
    background: var(--coral-500); color: #fff; border: none;
    width: 38px; height: 38px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .comment-send:disabled { background: #BAE6FD; cursor: not-allowed; }

  /* ===== Voice room: chat input + gift sheet ===== */
  .vroom-chat-input-row {
    display: flex; gap: 8px; align-items: center;
    padding: 8px 16px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(20px);
  }
  .vroom-chat-input {
    flex: 1; border: none; outline: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13.5px;
  }
  .vroom-chat-input::placeholder { color: rgba(255,255,255,0.55); }
  .vroom-chat-send {
    background: var(--coral-500); color: #fff; border: none;
    width: 38px; height: 38px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .vroom-chat-msg.gift {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 210, 74,.24), rgba(236,72,153,.26) 48%, rgba(14,165,233,.24));
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 16px;
    padding: 10px 13px;
    margin-bottom: 12px;
    box-shadow: 0 12px 28px rgba(236,72,153,.18), inset 0 0 18px rgba(255,255,255,.12);
  }
  .vroom-chat-msg.gift::before {
    content: "";
    position: absolute; inset: -60% -20%;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45), transparent 62%);
    transform: translateX(-120%) rotate(8deg);
    animation: gift-shine 2.6s ease-in-out infinite;
  }
  .vroom-chat-msg.gift .gift-emoji { font-size: 30px; filter: drop-shadow(0 0 12px rgba(255,255,255,.75)); }
  .vroom-chat-msg.gift .gift-line {
    position: relative; z-index: 1;
    color: #fff; font-size: 13px; line-height: 1.45; font-weight: 800;
  }
  .vroom-chat-msg.gift .gift-line strong { color: #FDE68A; text-shadow: 0 0 14px rgba(253,230,138,.48); }

  /* Bottom sheet overlay */
  .sheet-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    animation: fadeIn 0.18s ease-out;
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .sheet {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 16px 0 0;
    max-height: 88%;
    z-index: 201;
    display: flex; flex-direction: column;
    animation: slideUp 0.22s ease-out;
  }
  .sheet-body {
    flex: 1; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .sheet-footer {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #F1F1F5;
    padding: 12px 0 16px;
    box-shadow: 0 -4px 12px -8px rgba(0,0,0,0.1);
  }
  .sheet-handle {
    width: 40px; height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin: 0 auto 8px;
  }
  .sheet-title {
    text-align: center; font-size: 15px; font-weight: 800;
    padding: 8px 0 4px;
  }
  .sheet-sub {
    text-align: center; font-size: 12px; color: var(--ink-500);
    padding-bottom: 12px;
  }
  .gift-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; padding: 8px 16px;
  }
  .gift-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg,#FFFFFF 0%,var(--surface-mute) 100%);
    border: 1.5px solid rgba(255,255,255,.7);
    border-radius: 16px;
    padding: 15px 8px 11px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.14s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 8px 18px rgba(17,24,39,.06);
  }
  .gift-card::before {
    content: "";
    position: absolute; inset: -50% -35%;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.72), transparent 58%);
    transform: translateX(-115%) rotate(12deg);
    opacity: .75;
  }
  .gift-card:hover::before, .gift-card.selected::before { animation: gift-shine 2.2s ease-in-out infinite; }
  .gift-card:active { transform: scale(0.96); }
  .gift-card.selected {
    border-color: #F9A8D4;
    background: linear-gradient(145deg, #FFF7AD 0%, #FFE4F3 48%, #DFFBFF 100%);
    box-shadow: 0 14px 30px rgba(236,72,153,.22), 0 0 0 4px rgba(255,255,255,.75) inset;
  }
  .gift-card.rare { background: linear-gradient(145deg,#F0F9FF 0%,#FDF2F8 100%); }
  .gift-card.epic { background: linear-gradient(145deg,#FFF7ED 0%,#F5F3FF 46%,#ECFEFF 100%); }
  .gift-card.legendary { background: linear-gradient(145deg,#FEF3C7 0%,#FBCFE8 43%,#BAE6FD 100%); box-shadow: 0 12px 26px rgba(245,158,11,.2); }
  .gift-card.rainbow {
    background: linear-gradient(#fff,#fff) padding-box,
      conic-gradient(from 0deg,#FF004C,#FFB800,#18C7B8,#06B6D4,#6366F1,#EC4899,#FF004C) border-box;
    border: 2px solid transparent;
    animation: gift-rainbow-card 1.8s linear infinite;
  }
  @keyframes gift-rainbow-card {
    to { filter: hue-rotate(360deg); }
  }
  .gift-card-emoji {
    position: relative; z-index: 1;
    font-size: 40px; line-height: 1.1;
    filter: drop-shadow(0 8px 12px rgba(236,72,153,.18));
    animation: gift-float 2.8s ease-in-out infinite;
  }
  .gift-card-name { position:relative; z-index:1; font-size: 12px; font-weight: 900; margin-top: 7px; color: var(--ink-900); }
  .gift-card-price { position:relative; z-index:1; font-size: 11px; color: #EC4899; font-weight: 950; margin-top: 3px; }
  @keyframes gift-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-4px) rotate(3deg); }
  }
  @keyframes gift-shine {
    0% { transform: translateX(-125%) rotate(12deg); }
    42%, 100% { transform: translateX(125%) rotate(12deg); }
  }

  .gift-recipients {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 10px 16px 8px;
    scrollbar-width: none;
  }
  .gift-recipients::-webkit-scrollbar { display: none; }
  .gift-recipient {
    flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    cursor: pointer;
    padding: 4px;
    border-radius: 12px;
    border: 1.5px solid transparent;
  }
  .gift-recipient.selected { border-color: var(--coral-500); background: #F0F9FF; }
  .gift-recipient img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
  .gift-recipient-name { font-size: 10.5px; color: var(--ink-900); max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gift-recipient.all .gift-recipient-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--mint-500), var(--coral-500));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
  }
  .gift-send-row {
    margin: 12px 16px 0;
    display: flex; gap: 8px; align-items: center;
  }
  .gift-balance {
    flex: 1;
    font-size: 12.5px; color: var(--ink-500);
  }
  .gift-balance strong { color: var(--ink-900); font-weight: 800; }
  .gift-send-btn {
    background: var(--coral-500); color: #fff; border: none;
    padding: 12px 22px; border-radius: 999px;
    font-size: 14px; font-weight: 800; cursor: pointer;
  }
  .gift-send-btn:disabled { background: #BAE6FD; cursor: not-allowed; }

  /* Schedule sheet */
  .sched-section-title { font-size: 12px; font-weight: 700; color: var(--ink-500); padding: 10px 20px 6px; }
  .sched-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
  .sched-chips::-webkit-scrollbar { display: none; }
  .sched-chip {
    flex-shrink: 0; min-width: 58px; padding: 9px 12px;
    border-radius: 14px; background: #F4F4F8; border: 1.5px solid transparent;
    text-align: center; cursor: pointer;
    transition: transform 0.08s, border-color 0.15s, background 0.15s;
  }
  .sched-chip:active { transform: scale(0.96); }
  .sched-chip.selected {
    background: #F0F9FF; border-color: var(--coral-500);
  }
  .sched-chip-dow { font-size: 10.5px; color: var(--ink-500); font-weight: 700; }
  .sched-chip-day { font-size: 16px; font-weight: 800; color: var(--ink-900); margin-top: 1px; }
  .sched-chip-day.sun { color: #FF4F6E; }
  .sched-chip-day.sat { color: #4F8BFF; }
  .sched-chip.selected .sched-chip-dow { color: var(--coral-500); }
  .sched-chip-tag { font-size: 9.5px; color: var(--coral-500); font-weight: 800; margin-top: 1px; }
  .sched-chip.preferred:not(.selected) {
    background: linear-gradient(180deg, #F0FDF4 0%, #F0F9FF 100%);
    border-color: rgba(14, 165, 233,0.18);
  }
  .sched-chip.preferred .sched-chip-dow { color: var(--coral-500); }
  .sched-chip.preferred-dot::before {
    content: ''; position: absolute;
    top: 4px; right: 6px;
    width: 5px; height: 5px;
    background: var(--coral-500); border-radius: 50%;
  }
  .sched-chip { position: relative; }

  .sched-time-chip.preferred:not(.selected) {
    background: linear-gradient(180deg, #F0FDF4 0%, #F0F9FF 100%);
    color: var(--coral-500);
    border-color: rgba(14, 165, 233,0.18);
  }
  .sched-time-chip.preferred { position: relative; }
  .sched-time-chip.preferred::after {
    content: '?';
    position: absolute;
    top: -5px; right: -5px;
    font-size: 10px;
    line-height: 1;
  }

  .sched-section-title { display: flex; align-items: center; gap: 8px; }
  .sched-legend {
    font-size: 10px; font-weight: 700;
    background: linear-gradient(135deg, #DCFCE7, #F0F9FF);
    color: var(--coral-500);
    padding: 2px 8px; border-radius: 999px;
    margin-left: auto; margin-right: 16px;
  }
  .sched-avail-banner {
    margin: 0 16px 4px;
    padding: 9px 12px;
    background: linear-gradient(135deg, #DCFCE7 0%, #F0F9FF 100%);
    border-radius: 12px;
    font-size: 12px;
    color: var(--coral-500);
    font-weight: 700;
    display: flex; align-items: center; gap: 6px;
  }
  .sched-avail-banner .em { font-size: 14px; }

  .sched-time-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; padding: 0 16px 4px;
  }
  .sched-time-chip {
    padding: 9px 0; border-radius: 12px; background: #F4F4F8;
    border: 1.5px solid transparent; font-size: 13px; font-weight: 700;
    text-align: center; cursor: pointer; color: var(--ink-900);
    transition: background 0.15s, border-color 0.15s, transform 0.08s;
  }
  .sched-time-chip:active { transform: scale(0.96); }
  .sched-time-chip.selected { background: #F0F9FF; border-color: var(--coral-500); color: var(--coral-500); }

  .sched-game-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
  .sched-game-row::-webkit-scrollbar { display: none; }
  .sched-game-chip {
    flex-shrink: 0; padding: 8px 12px; border-radius: 12px;
    background: #F4F4F8; border: 1.5px solid transparent;
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }
  .sched-game-chip.selected { background: #F0F9FF; border-color: var(--coral-500); color: var(--coral-500); }
  .sched-game-emoji { font-size: 15px; }

  .sched-count-row {
    display: flex; align-items: center; gap: 12px;
    padding: 4px 20px;
  }
  .sched-count-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: #F4F4F8; border: none; font-size: 18px; font-weight: 800;
    cursor: pointer; color: var(--ink-900);
  }
  .sched-count-btn:active { background: var(--border); }
  .sched-count-num { flex: 1; text-align: center; font-size: 17px; font-weight: 800; }
  .sched-count-unit { font-size: 13px; color: var(--ink-500); margin-left: 2px; }

  .sched-note-input {
    margin: 4px 16px 4px; padding: 10px 12px;
    border-radius: 12px; background: #F4F4F8; border: none;
    width: calc(100% - 32px); font-size: 13px; outline: none;
    font-family: inherit;
  }
  .sched-note-input:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--coral-500); }

  .sched-submit-row {
    margin: 14px 16px 4px;
    display: flex; gap: 8px; align-items: center;
  }
  .sched-summary { flex: 1; font-size: 12.5px; color: var(--ink-500); line-height: 1.4; }
  .sched-summary strong { color: var(--ink-900); font-weight: 800; }
  .sched-submit-btn {
    background: var(--coral-500); color: #fff; border: none;
    padding: 12px 22px; border-radius: 999px;
    font-size: 14px; font-weight: 800; cursor: pointer;
  }
  .sched-submit-btn:disabled { background: #BAE6FD; cursor: not-allowed; }

  /* Schedule bubble inside chat */
  .sched-bubble { max-width: 240px; padding: 12px 14px !important; cursor: pointer; }
  .sched-bubble-head {
    font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px;
    margin-bottom: 6px;
  }
  .sched-bubble-status {
    font-size: 10px; padding: 2px 7px; border-radius: 999px;
    font-weight: 800; margin-left: auto;
  }
  .sched-bubble-status.upcoming { background: rgba(14, 165, 233,0.18); color: var(--coral-500); }
  .sched-bubble-status.completed { background: rgba(34,197,94,0.18); color: #138C49; }
  .sched-bubble-status.cancelled { background: rgba(160,160,174,0.25); color: var(--ink-500); }
  .bubble.me .sched-bubble-status.upcoming { background: rgba(255,255,255,0.25); color: #fff; }
  .bubble.me .sched-bubble-status.completed { background: rgba(255,255,255,0.25); color: #fff; }
  .bubble.me .sched-bubble-status.cancelled { background: rgba(255,255,255,0.20); color: rgba(255,255,255,0.85); }
  .sched-bubble-when { font-size: 14px; font-weight: 800; line-height: 1.3; }
  .sched-bubble-meta { font-size: 11.5px; opacity: 0.85; margin-top: 4px; }
  .sched-bubble-note { font-size: 11.5px; opacity: 0.78; margin-top: 6px; font-style: italic; }
  .sched-bubble-tap { font-size: 10.5px; opacity: 0.65; margin-top: 8px; }

  /* My Schedules screen */
  .sched-tabs {
    display: flex; gap: 6px; padding: 8px 20px 12px;
  }
  .sched-tab {
    padding: 7px 14px; border-radius: 999px; background: #F4F4F8;
    font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-500);
  }
  .sched-tab.active { background: var(--coral-500); color: #fff; }

  .sched-item {
    background: #fff; margin: 0 16px 10px;
    border-radius: 16px; padding: 14px;
    border: 1px solid var(--border);
    display: flex; gap: 12px;
  }
  .sched-item.cancelled { opacity: 0.55; }
  .sched-item.completed { background: #F9F9FC; }
  .sched-item-date {
    width: 56px; flex-shrink: 0;
    background: linear-gradient(180deg, var(--coral-500) 0%, var(--coral-500) 100%);
    color: #fff; border-radius: 12px; padding: 8px 0;
    text-align: center;
  }
  .sched-item.completed .sched-item-date { background: linear-gradient(180deg, var(--mint-500) 0%, #138C49 100%); }
  .sched-item.cancelled .sched-item-date { background: var(--ink-500); }
  .sched-item-month { font-size: 10.5px; font-weight: 700; opacity: 0.85; }
  .sched-item-day { font-size: 22px; font-weight: 800; line-height: 1.05; }
  .sched-item-dow { font-size: 10px; opacity: 0.85; margin-top: 1px; }
  .sched-item-body { flex: 1; min-width: 0; }
  .sched-item-top { display: flex; align-items: center; gap: 8px; }
  .sched-item-mate-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
  .sched-item-mate-name { font-size: 13px; font-weight: 800; }
  .sched-item-when {
    font-size: 13px; color: var(--ink-900); font-weight: 700; margin-top: 4px;
  }
  .sched-item-game { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
  .sched-item-note {
    font-size: 12px; color: var(--ink-500); margin-top: 6px;
    background: var(--surface-mute); padding: 6px 8px; border-radius: 8px;
    font-style: italic;
  }
  .sched-item-actions {
    display: flex; gap: 6px; margin-top: 10px;
  }
  .sched-action-btn {
    flex: 1; padding: 7px 0; border-radius: 10px;
    border: none; font-size: 12px; font-weight: 700; cursor: pointer;
  }
  .sched-action-btn.primary { background: var(--coral-500); color: #fff; }
  .sched-action-btn.ghost { background: #F4F4F8; color: var(--ink-500); }
  .sched-action-btn.danger { background: #E5FBEE; color: #FF4F6E; }

  .sched-countdown {
    display: inline-block;
    font-size: 10.5px; font-weight: 800;
    padding: 2px 7px; border-radius: 999px;
    background: rgba(14, 165, 233,0.14); color: var(--coral-500);
    margin-left: 6px;
  }
  .sched-countdown.soon { background: rgba(255,79,110,0.16); color: #FF4F6E; }

  /* Home upcoming-schedule banner */
  .upcoming-sched {
    margin: 0 20px 12px;
    background: linear-gradient(135deg, var(--coral-500) 0%, var(--coral-500) 60%, var(--mint-500) 120%);
    border-radius: 18px; padding: 14px 16px;
    color: #fff; display: flex; align-items: center; gap: 12px;
    cursor: pointer;
    box-shadow: 0 8px 24px -8px rgba(14, 165, 233,0.55);
  }
  .upcoming-sched:active { transform: scale(0.99); }
  .upcoming-sched-icon { font-size: 28px; }
  .upcoming-sched-body { flex: 1; min-width: 0; }
  .upcoming-sched-label { font-size: 11px; opacity: 0.85; font-weight: 700; }
  .upcoming-sched-when {
    font-size: 15px; font-weight: 800; margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .upcoming-sched-sub { font-size: 11.5px; opacity: 0.9; margin-top: 2px; }
  .upcoming-sched-cta { font-size: 12px; font-weight: 800; opacity: 0.95; }
  .empty-msg {
    text-align: center; padding: 60px 20px;
    color: var(--ink-500); font-size: 13px;
  }
  .empty-msg .emoji { font-size: 40px; display: block; margin-bottom: 10px; }

  /* Settings */
  .setting-section { margin: 12px 0; }
  .setting-section-title {
    font-size: 12px; font-weight: 700; color: var(--ink-500);
    padding: 8px 20px 6px;
  }
  .setting-list { background: #fff; }
  .setting-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid #F1F1F5;
    cursor: pointer;
  }
  .setting-row:active { background: var(--surface-mute); }
  .setting-icon { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
  .setting-label {
    flex: 1; min-width: 0;
    font-size: 14px; color: var(--ink-900); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .setting-value { font-size: 12px; color: var(--ink-500); flex-shrink: 0; }
  .setting-row.danger .setting-label { color: #FF4F6E; }
  /* Inline SVGs (e.g. chevronRight) inside a setting-row default to 300x150
     in most browsers when no dimensions are set, which squishes the label
     into a single-character column. Pin them to a sensible icon size. */
  .setting-row > svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    color: var(--ink-500);
  }

  /* Toggle switch */
  .toggle {
    position: relative; display: inline-block;
    width: 42px; height: 24px;
  }
  .toggle input { opacity: 0; width: 0; height: 0; }
  .toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #D6D6E0; border-radius: 24px;
    transition: 0.18s;
  }
  .toggle-slider:before {
    position: absolute; content: '';
    width: 20px; height: 20px;
    left: 2px; bottom: 2px;
    background: #fff; border-radius: 50%;
    transition: 0.18s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }
  .toggle input:checked + .toggle-slider { background: var(--coral-500); }
  .toggle input:checked + .toggle-slider:before { transform: translateX(18px); }
