    /* ========== DONATIONS / GOLD COMMENT ========== */
    .donate-btn .icon-btn {
      color:#ffd76a;
      background:rgba(255,204,74,.12);
      border:1px solid rgba(255,215,106,.26);
      box-shadow:0 7px 22px rgba(255,196,64,.12);
    }
    .donate-btn .count { color:#ffd76a; }
    .donation-comment-cta {
      width:100%;
      display:flex; align-items:center; justify-content:center; gap:8px;
      border:1px solid rgba(255,215,106,.22);
      background:linear-gradient(135deg,rgba(255,196,64,.12),rgba(255,255,255,.04));
      color:#ffd76a; border-radius:12px; padding:10px 12px;
      font-weight:750; cursor:pointer; margin:0 0 10px;
    }
    .donation-comment-cta:active { transform:scale(.985); }
    .donation-comments-section { margin-bottom:10px; }
    .donation-section-title {
      display:flex; align-items:center; justify-content:space-between; gap:8px;
      padding:8px 0 7px; color:#ffd76a; font-size:12px; font-weight:800;
      text-transform:uppercase; letter-spacing:.04em;
    }
    .donation-comment {
      display:flex; gap:10px; padding:10px 11px; margin-bottom:7px;
      border:1px solid rgba(255,255,255,.07); border-radius:13px;
      background:rgba(255,255,255,.035);
    }
    .donation-comment.gold {
      position:relative; overflow:hidden;
      border-color:rgba(255,215,106,.58);
      background:linear-gradient(135deg,rgba(255,214,102,.20),rgba(255,189,58,.07) 55%,rgba(255,255,255,.025));
      box-shadow:0 10px 28px rgba(255,190,58,.15), inset 0 1px 0 rgba(255,255,255,.12);
    }
    .donation-comment.gold::before {
      content:""; position:absolute; inset:0 auto 0 0; width:3px;
      background:linear-gradient(#fff2a8,#f5b62e,#fff2a8);
    }
    .donation-avatar {
      width:36px; height:36px; border-radius:50%; flex:0 0 36px; overflow:hidden;
      background:#252525; border:1px solid rgba(255,255,255,.08);
    }
    .donation-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
    .donation-main { flex:1; min-width:0; }
    .donation-name-row { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
    .donation-name { font-size:13px; font-weight:800; color:#fff; }
    .donation-amount {
      font-size:12px; font-weight:850; color:#ffd76a;
      padding:3px 7px; border-radius:999px; background:rgba(255,215,106,.11);
      border:1px solid rgba(255,215,106,.17);
    }
    .donation-badge {
      display:inline-flex; align-items:center; gap:4px; padding:3px 7px; border-radius:999px;
      font-size:10px; font-weight:850; color:#6b4300; background:linear-gradient(180deg,#ffeaa1,#f5bb3c);
      box-shadow:0 3px 10px rgba(245,187,60,.2);
    }
    .donation-message { white-space:pre-wrap; word-break:break-word; color:#f5f5f6; font-size:13px; line-height:1.35; margin-top:5px; }
    .donation-system-text { color:#fff; font-size:13px; line-height:1.35; margin-top:4px; }
    .donation-meta { margin-top:5px; color:#8c8c93; font-size:11px; }
    .donation-pin { color:#ffd76a; font-size:11px; font-weight:800; }
    .gold-comment-note {
      display:flex; gap:10px; align-items:flex-start; padding:12px; margin-top:10px; border-radius:13px;
      border:1px solid rgba(255,215,106,.18); background:rgba(255,215,106,.06); color:#dcdce1;
      font-size:12px; line-height:1.4;
    }
    .gold-comment-note strong { color:#ffd76a; }
    .donation-settings-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
    .donation-settings-actions .u-btn { white-space:nowrap; }
    .donation-status { font-size:12px; font-weight:750; }
    .donation-status.connected { color:#76e3a4; }
    .donation-status.disconnected { color:#ffcc75; }
    body.light-theme .donation-comment { background:rgba(20,20,30,.035); border-color:#e6e6eb; }
    body.light-theme .donation-comment.gold { border-color:#e0b84e; background:linear-gradient(135deg,rgba(255,210,92,.22),rgba(255,255,255,.88)); }
    body.light-theme .donation-name { color:#1a1a1d; }
    body.light-theme .donation-message, body.light-theme .donation-system-text { color:#25252a; }
    body.light-theme .donation-meta { color:#74747c; }

    /* Utility */
    .hidden { display: none !important; }
    .empty-state {
      text-align: center;
      padding: 40px 20px;
      color: var(--text-muted);
    }
    .empty-state .icon { font-size: 48px; margin-bottom: 12px; }

    /* Friends / Subscriptions simple lists */
    .user-list {
      flex: 1;
      overflow-y: auto;
      padding: 8px 0;
    }

    .user-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 16px;
      cursor: pointer;
    }

    .user-row:active { background: rgba(255,255,255,0.05); }

    .user-row .u-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: #333;
      overflow: hidden;
    }

    .user-row .u-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .user-row .u-info { flex: 1; }
    .user-row .u-name { font-weight: 600; font-size: 15px; }
    .user-row .u-username { font-size: 13px; color: var(--text-muted); }
    .user-row .u-btn {
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 6px 14px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
    }
    .user-row .u-btn.following {
      background: var(--surface-2);
    }


    /* ========== PROFESSIONAL ICON SYSTEM ========== */
    .icon, .ui-icon, .icon-btn, .ctrl-btn, .profile-back, .publish-header .back,
    .avatar-follow, .side-action .icon-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .icon svg, .ui-icon svg, .icon-btn svg, .ctrl-btn svg, .profile-back svg,
    .publish-header .back svg, .avatar-follow svg, .side-action .icon-btn svg {
      width: 1em;
      height: 1em;
      display: block;
    }

    .bottom-nav .btn .icon {
      width: 26px;
      height: 26px;
      font-size: 24px;
    }

    .bottom-nav .btn.create .icon svg {
      width: 22px;
      height: 22px;
    }

    .side-action .icon-btn {
      width: 46px;
      height: 46px;
      font-size: 24px;
      color: #fff;
      background: rgba(0,0,0,0.34);
      border: 1px solid rgba(255,255,255,0.08);
      backdrop-filter: blur(8px);
    }

    .side-action .icon-btn.liked {
      color: var(--accent);
      background: rgba(254,44,85,0.14);
    }

    .side-action .icon-btn.saved {
      color: #ffd166;
      background: rgba(255,209,102,0.14);
    }

    .ctrl-btn {
      color: #fff;
      border: 1px solid rgba(255,255,255,0.12);
      backdrop-filter: blur(8px);
    }

    .camera-placeholder .big-icon {
      display: flex;
      justify-content: center;
      font-size: 56px;
      margin-bottom: 12px;
    }

    .auth-sheet {
      max-height: 82%;
    }

    .auth-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px;
      padding: 4px;
      background: var(--surface-2);
      border-radius: 10px;
      margin-bottom: 14px;
    }

    .auth-tab {
      border: 0;
      background: transparent;
      color: var(--text-muted);
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }

    .auth-tab.active {
      background: #2a2a2a;
      color: #fff;
    }

    .auth-field {
      margin-bottom: 10px;
      background: var(--surface-2);
      border-radius: 10px;
      padding: 11px 12px;
    }

    .auth-field label {
      display: block;
      color: var(--text-muted);
      font-size: 11px;
      margin-bottom: 5px;
    }

    .auth-field input {
      width: 100%;
      border: 0;
      outline: 0;
      color: #fff;
      background: transparent;
      font: inherit;
      font-size: 14px;
    }

    .auth-note {
      color: var(--text-muted);
      font-size: 12px;
      line-height: 1.45;
      margin: 8px 2px 14px;
    }

    .auth-submit {
      width: 100%;
      border: 0;
      border-radius: 10px;
      background: var(--accent);
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      padding: 12px 14px;
      cursor: pointer;
    }

    .auth-submit:disabled { opacity: .55; cursor: default; }

    /* ========== PROFILE REDESIGN ========== */
    #profile-screen {
      padding-bottom: calc(var(--bottom-h) + var(--safe-bottom));
      overflow-y: auto;
      background: #000;
    }

    .profile-header {
      padding: calc(var(--top-h) + var(--safe-top) + 18px) 16px 18px;
      background: linear-gradient(180deg, #111 0%, #090909 100%);
      text-align: center;
    }

    .profile-back {
      top: calc(var(--safe-top) + 10px);
      left: 12px;
      width: 38px;
      height: 38px;
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.09);
      backdrop-filter: blur(10px);
    }

    .profile-top {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
      margin-bottom: 12px;
    }

    .profile-avatar {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      border: 3px solid rgba(255,255,255,.95);
      box-shadow: 0 8px 30px rgba(0,0,0,.35);
    }

    .profile-avatar img {
      display:block;
    }

    .profile-stats {
      display: flex;
      justify-content: center;
      gap: 42px;
      width: 100%;
      margin-top: 2px;
    }

    .profile-stats .stat .num {
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -.2px;
    }

    .profile-stats .stat .label {
      font-size: 12px;
      color: #9d9d9d;
      margin-top: 4px;
    }

    .profile-name {
      font-size: 20px;
      font-weight: 800;
      margin: 2px 0 2px;
    }

    .profile-username {
      font-size: 13px;
      color: #8f8f8f;
      margin-bottom: 8px;
    }

    .profile-bio {
      max-width: 340px;
      margin: 0 auto 14px;
      color: #d2d2d2;
    }

    .profile-actions {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-bottom: 14px;
    }

    .profile-actions button {
      flex: 0 0 auto;
      min-width: 170px;
      padding: 11px 18px;
      border-radius: 9px;
      font-size: 14px;
    }

    .profile-tabs {
      position: sticky;
      top: 0;
      z-index: 25;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      background: rgba(0,0,0,.92);
      backdrop-filter: blur(14px);
      border-top: 1px solid rgba(255,255,255,.06);
      border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .profile-tabs .ptab {
      padding: 13px 8px 12px;
      font-size: 13px;
      color: #888;
      white-space: nowrap;
    }

    .profile-tabs .ptab.active {
      color: #fff;
    }

    .profile-tabs .ptab.active::after {
      left: 18%;
      right: 18%;
      height: 2px;
      background: #fff;
    }

    .profile-grid {
      gap: 2px;
      padding: 2px;
    }

    .bottom-nav {
      justify-content: space-around;
    }

    .profile-actions .btn-icon {
      width: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
    }

    .profile-edit-overlay { align-items: center; padding: 12px; backdrop-filter: blur(8px); background: rgba(0,0,0,.78); }
    .profile-edit-sheet {
      width: min(100%, 520px);
      max-height: min(820px, calc(100% - 24px));
      border-radius: 26px;
      padding: 22px;
      background: linear-gradient(180deg, #19191b 0%, #0d0d0f 100%);
      border: 1px solid rgba(255,255,255,.10);
      box-shadow: 0 28px 90px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.035);
    }
    .profile-edit-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
    .profile-edit-head h3 { margin:0; text-align:left; font-size:21px; font-weight:850; letter-spacing:-.02em; }
    .profile-edit-close { width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,.09); background:#252527; color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 5px 18px rgba(0,0,0,.22); }
    .profile-edit-close:active { transform:scale(.94); }
    .profile-edit-subtitle { color:#909096; font-size:12px; line-height:1.45; margin-bottom:16px; }
    .profile-edit-avatar-row { display:flex; justify-content:center; margin:2px 0 18px; }
    .profile-edit-avatar-btn { position:relative; width:112px; height:112px; padding:0; border:3px solid rgba(255,255,255,.92); border-radius:50%; overflow:hidden; background:#242424; cursor:pointer; box-shadow:0 0 0 5px rgba(254,44,85,.10), 0 16px 38px rgba(0,0,0,.40); }
    .profile-edit-avatar-btn:disabled { cursor:not-allowed; opacity:.7; }
    .profile-edit-field input:disabled, .profile-edit-field textarea:disabled { color:#777; background:#111; cursor:not-allowed; }
    .profile-edit-avatar-btn img { width:100%; height:100%; object-fit:cover; display:block; }
    .profile-edit-avatar-overlay { position:absolute; inset:auto 0 0; display:flex; align-items:center; justify-content:center; gap:6px; padding:10px 6px; background:linear-gradient(180deg, transparent, rgba(0,0,0,.86)); font-size:11px; font-weight:750; }
    .profile-edit-field { margin-bottom:13px; }
    .profile-edit-field label { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:#b5b5bb; margin:0 0 7px 3px; font-weight:700; }
    .profile-edit-field input, .profile-edit-field textarea { width:100%; box-sizing:border-box; border:1px solid rgba(255,255,255,.075); background:#111113; color:#fff; border-radius:13px; padding:13px 14px; font-size:14px; outline:none; font-family:inherit; box-shadow:inset 0 1px 0 rgba(255,255,255,.02); }
    .profile-edit-field textarea { min-height:88px; max-height:150px; resize:vertical; line-height:1.45; }
    .profile-edit-field input:focus, .profile-edit-field textarea:focus { border-color:rgba(254,44,85,.58); box-shadow:0 0 0 3px rgba(254,44,85,.10); }
    .profile-edit-field input:disabled, .profile-edit-field textarea:disabled { color:#777; background:#111; cursor:not-allowed; }
    .profile-edit-hint { font-size:11px; color:#6f6f76; margin-top:6px; padding-left:3px; }
    .profile-edit-counter { font-size:10px; color:#66666d; font-weight:600; }
    .profile-edit-cooldown { display:none; align-items:flex-start; gap:10px; padding:12px 13px; border-radius:14px; background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.075); color:#cfcfd3; font-size:12px; line-height:1.45; margin-bottom:15px; }
    .profile-edit-cooldown.visible { display:flex; }
    .profile-edit-cooldown .cooldown-icon { flex:0 0 auto; color:#aaa; margin-top:1px; }
    .profile-edit-error { min-height:18px; color:#ff8f9f; font-size:12px; margin:0 0 9px 2px; }
    .profile-edit-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:7px; }
    .profile-edit-actions button { min-height:46px; border-radius:13px; border:1px solid rgba(255,255,255,.08); font-size:14px; font-weight:750; cursor:pointer; }
    .profile-edit-cancel { background:#151517; color:#fff; }
    .profile-edit-save { background:#fff; color:#111; border-color:#fff !important; }
    .profile-edit-save:disabled, .profile-edit-cancel:disabled { opacity:.5; cursor:not-allowed; }
    @media (max-width: 520px) {
      .profile-edit-overlay { padding:8px; }
      .profile-edit-sheet { max-height:calc(100% - 16px); padding:18px; border-radius:23px; }
      .profile-edit-avatar-btn { width:100px; height:100px; }
    }

    .db-status {
      display:none !important;

      position: fixed;
      top: 10px;
      right: 10px;
      z-index: 500;
      font-size: 10px;
      line-height: 1;
      color: rgba(255,255,255,0.72);
      background: rgba(18,18,18,0.78);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 999px;
      padding: 6px 8px;
      pointer-events: none;
      opacity: .9;
    }

    .db-status.ok { color: #b9f6ca; }
    .db-status.warn { color: #ffd6a5; }



.low-performance .profile-edit-overlay,
.low-performance .donation-sheet,
.low-performance .chat-modal,
.low-performance .modal-overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
