      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.2s ease;
      padding: 0;
    }
    #gif-btn:hover { color: #fff; background: rgba(138,94,255,0.1); border-color: rgba(138,94,255,0.15); }
    #gif-btn:active { transform: scale(0.9); }
    #gif-btn.active { background: rgba(138,94,255,0.2); color: var(--accent-light); border-color: rgba(138,94,255,0.25); }

    /* ═══════════════════════════════════════
       GIF PICKER — Panel flotante minimalista
       ═══════════════════════════════════════ */
    #gif-picker {
      display: none;
      flex-direction: column;
      position: absolute;
      bottom: 60px;
      left: 8px;
      right: 8px;
      z-index: 50;
      max-height: 340px;
      background: rgba(6,6,12,0.97);
      backdrop-filter: blur(32px);
      -webkit-backdrop-filter: blur(32px);
      border: 0.5px solid rgba(255,255,255,0.06);
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 -8px 40px rgba(0,0,0,0.6), 0 8px 32px rgba(0,0,0,0.3);
      animation: gifSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes gifSlideUp {
      0% { transform: translateY(20px); opacity: 0; }
      100% { transform: translateY(0); opacity: 1; }
    }
    #gif-picker.open { display: flex; }
    #gif-search-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      flex-shrink: 0;
      border-bottom: 0.5px solid rgba(255,255,255,0.04);
    }
    #gif-search {
      flex: 1;
      background: rgba(255,255,255,0.04);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 0.5px solid rgba(255,255,255,0.06);
      border-radius: 18px;
      padding: 10px 14px;
      color: #fff;
      font-size: 14px;
      font-family: var(--font);
      outline: none;
      transition: all 0.2s;
    }
    #gif-search:focus { border-color: rgba(138,94,255,0.3); background: rgba(255,255,255,0.06); }
    #gif-search::placeholder { color: rgba(255,255,255,0.15); }
    #gif-close {
      width: 30px; height: 30px;
      border-radius: 50%;
      background: rgba(255,255,255,0.03);
      border: none;
      color: rgba(255,255,255,0.3);
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font);
      transition: all 0.2s;
    }
    #gif-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
    #gif-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 14px 4px;
      flex-shrink: 0;
    }
    #gif-trend-label {
      font-size: 13px;
      font-weight: 700;
      color: rgba(255,255,255,0.45);
    }
    #gif-count {
      font-size: 11px;
      color: rgba(255,255,255,0.2);
    }
    #gif-grid {
      flex: 1;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      padding: 4px 12px 12px;
      overflow-y: auto;
      min-height: 0;
    }
    #gif-grid::-webkit-scrollbar { width: 3px; }
    #gif-grid::-webkit-scrollbar-track { background: transparent; }
    #gif-grid::-webkit-scrollbar-thumb { background: rgba(138,94,255,0.2); border-radius: 3px; }
    .gif-item {
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      aspect-ratio: 1 / 1;
      background: rgba(255,255,255,0.02);
      border: 0.5px solid rgba(255,255,255,0.03);
      transition: all 0.15s ease;
    }
    .gif-item:hover { transform: scale(1.04); border-color: rgba(138,94,255,0.15); }
    .gif-item:active { transform: scale(0.95); }
    .gif-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    #gif-loading {
      padding: 30px 12px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      color: rgba(255,255,255,0.2);
      font-size: 12px;
    }
    .gif-loader-spinner {
      width: 24px; height: 24px;
      border: 2px solid rgba(138,94,255,0.1);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ─── GIF EN CHAT ─── */
    .msg-gif {
      width: 90px;
      max-width: 100px;
      max-height: 90px;
      border-radius: 8px;
      display: block;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    #live-badge {
      display: flex;
      align-items: center;
      gap: 5px;
      background: rgba(255,0,0,0.15);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      border: 0.5px solid rgba(255,0,0,0.1);
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 10px;
      font-weight: 700;
      position: absolute;
      top: -50%; left: -50%;
      width: 200%; height: 200%;
      background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
      pointer-events: none;
    }
    #send-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 24px rgba(138,94,255,0.35);
    }
    #send-btn:active { transform: scale(0.92); }

    /* ═══════════════════════════════════════
       AUTH CRYSTAL GLASS (login/register)
       ═══════════════════════════════════════ */
    #auth-overlay {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(4,4,12,0.85);
      backdrop-filter: blur(30px);
      -webkit-backdrop-filter: blur(30px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }
    #auth-overlay.hidden { display: none; }

    #auth-box {
      width: 100%;
      max-width: 380px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      background: rgba(255,255,255,0.02);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 0.5px solid rgba(255,255,255,0.06);
      border-radius: 28px;
      padding: 32px 24px;
      box-shadow: 
        0 16px 64px rgba(0,0,0,0.4),
        0 0 0 0.5px rgba(255,255,255,0.03),
        inset 0 1px 0 rgba(255,255,255,0.04);
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* Brillo en esquina del glass */
    #auth-box::before {
      content: '';
      position: absolute;
      top: -40%;
      right: -30%;
      width: 80%;
      height: 80%;
      background: radial-gradient(circle at 80% 20%, rgba(180,130,255,0.08) 0%, transparent 60%);
      pointer-events: none;
    }

    #auth-logo {
      width: 72px; height: 72px;
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(138,94,255,0.3), rgba(107,63,204,0.2));
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 0.5px solid rgba(138,94,255,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      box-shadow: 0 8px 32px rgba(138,94,255,0.15);
    }
    #auth-title {
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.5px;
      background: linear-gradient(135deg, #fff 60%, rgba(180,130,255,0.7));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    #auth-subtitle {
      font-size: 14px;
      color: var(--text2);
      text-align: center;
      line-height: 1.5;
    }
    .auth-input {
      width: 100%;
      background: rgba(255,255,255,0.03);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 0.5px solid rgba(255,255,255,0.06);
      border-radius: 14px;
      padding: 14px 18px;
      color: #fff;
      font-size: 15px;
      font-family: var(--font);
      outline: none;
      transition: all 0.25s ease;
      box-shadow: inset 0 1px 2px rgba(255,255,255,0.02);
    }
    .auth-input:focus { 
      border-color: rgba(138,94,255,0.3);
      box-shadow: 
        inset 0 1px 2px rgba(255,255,255,0.04),
        0 0 24px rgba(138,94,255,0.04);
    }
    .auth-input::placeholder { color: rgba(255,255,255,0.15); }

    #auth-btn {
      width: 100%;
      background: linear-gradient(135deg, var(--accent), #6b3fcc);
      border: none;
      border-radius: 14px;
      padding: 14px;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: var(--font);
      box-shadow: 0 4px 20px rgba(138,94,255,0.2);
    }
    #auth-btn:active { transform: scale(0.97); opacity: 0.9; }
    #auth-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

    #auth-error {
      color: #ff5555;
      font-size: 13px;
      text-align: center;
      text-shadow: 0 1px 4px rgba(255,0,0,0.2);
    }
    #auth-toggle {
      background: none;
      border: none;
      color: var(--accent-light);
      font-size: 13px;
      cursor: pointer;
      font-family: var(--font);
      opacity: 0.7;
      transition: opacity 0.2s;
    }
    #auth-toggle:hover { opacity: 1; }

    /* ─── CODE INPUT (6 dígitos) Crystal ─── */
    #code-inputs {
      display: flex;
      gap: 10px;
      justify-content: center;
    }
    .code-box {
      width: 44px; height: 52px;
      background: rgba(255,255,255,0.03);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 0.5px solid rgba(255,255,255,0.08);
      border-radius: 12px;
      color: #fff;
      font-size: 22px;
      font-weight: 700;
      text-align: center;
      font-family: var(--font);
      outline: none;
      transition: all 0.25s ease;
    }
    .code-box:focus { 
      border-color: rgba(138,94,255,0.3);
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(138,94,255,0.06);
    }

    /* ═══════════════════════════════════════
       DONATE / PROFILE CRYSTAL GLASS
       ═══════════════════════════════════════ */
    #donate-content, #profile-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin: 16px;
      padding: 32px 24px;
      gap: 18px;
      text-align: center;
      border-radius: 24px;
      background: rgba(255,255,255,0.02);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 0.5px solid rgba(255,255,255,0.04);
      box-shadow: 
        0 8px 32px rgba(0,0,0,0.2),
        inset 0 0 0 0.5px rgba(255,255,255,0.02);
    }
    #donate-content h2, #profile-content h2 {
      font-size: 22px;
      font-weight: 800;
      background: linear-gradient(135deg, #fff 60%, rgba(180,130,255,0.6));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    #donate-content p, #profile-content p {
      color: var(--text2);
      font-size: 14px;
      line-height: 1.6;
    }
    .prim-btn {
      background: linear-gradient(135deg, var(--accent), #6b3fcc);
      border: none;
      color: #fff;
      padding: 13px 36px;
      border-radius: 16px;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: var(--font);
      box-shadow: 0 4px 20px rgba(138,94,255,0.15);
    }
    .prim-btn:active { transform: scale(0.96); }
    #logout-btn {
      background: rgba(255,255,255,0.03);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 0.5px solid rgba(255,255,255,0.06);
      color: var(--text2);
      padding: 10px 28px;
      border-radius: 14px;
      font-size: 13px;
      cursor: pointer;
      font-family: var(--font);
      transition: all 0.2s;
    }
    #logout-btn:hover { border-color: rgba(255,255,255,0.15); color: #fff; }
    #logout-btn:active { transform: scale(0.96); }
    #profile-nick { 
      color: var(--accent-light); 
      font-size: 17px; 
      font-weight: 600;
      letter-spacing: -0.3px;
    }
    #profile-avatar-wrap {
      width: 64px; height: 64px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid rgba(138,94,255,0.2);
      box-shadow: 0 4px 20px rgba(138,94,255,0.1);
    }
    #profile-avatar {
      width: 100%; height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      background: linear-gradient(135deg, rgba(138,94,255,0.2), rgba(107,63,204,0.1));
    }
    #profile-avatar img {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
    }

    /* ─── SCROLLBAR ─── */
    ::-webkit-scrollbar { width: 3px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(138,94,255,0.2); border-radius: 3px; }

    @media (max-width: 400px) {
      .top-icon { width: 32px; height: 32px; font-size: 14px; }
      .msg { font-size: 11px; padding: 3px 7px; }
    }
