.mf-container { max-width: 800px; margin: 0 auto; font-family: 'Segoe UI', Tahoma, sans-serif; background: #f0f2f5; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; color: #1a1a1a; min-height: 500px;}
.mf-app-header { background: #1a1a1a; display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 4px solid #D4AF37; }
.mf-nav-item { color: #fff; font-weight: bold; cursor: pointer; transition: 0.2s; font-size: 15px;}
.mf-nav-item:hover, .mf-nav-item.active { color: #D4AF37; }

.mf-input { width: 100%; padding: 12px; background: #fff; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 15px; box-sizing: border-box; }
.mf-input:focus { border-color: #D4AF37; outline: none; }
.mf-btn { padding: 10px 18px; font-size: 15px; font-weight: bold; border-radius: 6px; cursor: pointer; border: none; transition: 0.3s; text-transform: uppercase; }
.mf-btn-primary { background: #D4AF37; color: #1a1a1a; }
.mf-btn-outline { background: transparent; border: 2px solid #1a1a1a; color: #1a1a1a; }
.mf-btn-success { background: #1a1a1a; color: #fff; }

.mf-feed-list { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.mf-feed-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.mf-card-header { margin-bottom: 15px; }
.mf-author-info { display: flex; align-items: center; gap: 12px; }
.mf-avatar { width: 40px; height: 40px; background: #e2e8f0; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; }
.mf-author-name { font-weight: bold; font-size: 16px; }
.mf-cat-badge { background: #1a1a1a; color: #D4AF37; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase;}
.mf-time-views { font-size: 12px; color: #718096; margin-top: 3px; }
.mf-question-title { margin: 0 0 10px 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.mf-question-content { font-size: 15px; line-height: 1.6; margin-bottom: 20px; word-break: break-word; white-space: normal;}

.mf-answers-section { background: #f8fafc; border-radius: 8px; padding: 15px; border: 1px solid #edf2f7; }
.mf-answer-item { display: flex; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #edf2f7; }
.mf-admin-answer { background: #fffcf0; padding: 15px; border: 1px solid #D4AF37; border-radius: 6px; }
.mf-admin-badge { background: #D4AF37; color: #1a1a1a; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 800; margin-left: 8px; }

.mf-vote-column { width: 40px; display: flex; flex-direction: column; align-items: center; margin-right: 15px; }
.mf-vote-btn { background: transparent; border: none; font-size: 20px; color: #cbd5e0; cursor: pointer; padding: 0; transition: 0.2s;}
.mf-vote-btn[data-type="up"]:hover { color: #2ecc71; }
.mf-vote-btn[data-type="down"]:hover { color: #e74c3c; }
.mf-vote-count { font-size: 13px; font-weight: bold; color: #718096; margin-top: 2px; }
.mf-answer-body { flex: 1; }
.mf-answer-author { font-size: 14px; margin-bottom: 5px; font-weight:bold;}
.mf-answer-text { font-size: 15px; line-height: 1.5; word-break: break-word;}

.mf-toggle-reply-btn { background: transparent; border: none; color: #D4AF37; font-weight: bold; cursor: pointer; padding: 0; font-size: 14px; }
.mf-toggle-reply-btn:hover { text-decoration: underline; }
.mf-inline-reply-form { margin-top: 15px; background: #fff; padding: 15px; border-radius: 6px; border: 1px solid #e2e8f0; }

/* Modals */
.mf-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 99999; }
.mf-modal-content { background: #fff; padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; border-top: 4px solid #D4AF37; position: relative;}

/* Profile & Notifications */
.mf-pro-item { background: #fff; padding: 15px; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; }
.mf-notif-item { background: #ebf8ff; padding: 15px; border-left: 4px solid #3182ce; border-radius: 4px; margin-bottom: 10px; font-weight: 500; }

.MathJax { outline: 0; display: inline-block !important; }