/* ── Tool base ────────────────────────────────────────────────────────── */
.mt-tool-section { padding:60px 0 80px; background:var(--secondary-color,#F8F8F8); }
.mt-tool-card { background:#fff; border-radius:20px; padding:32px; box-shadow:0 10px 40px rgba(3,29,54,.06); height:100%; display:flex; flex-direction:column; }
.mt-tool-card-head { margin-bottom:22px; }
.mt-tool-card-head h4 { font-size:18px; font-weight:700; color:var(--primary-color,#031D36); margin-bottom:4px; }
.mt-tool-card-head p  { font-size:14px; color:#6b7a8d; margin-bottom:0; }
.mt-form-group { margin-bottom:18px; }
.mt-form-group label { display:block; font-size:13px; font-weight:600; color:var(--primary-color); margin-bottom:6px; }
.mt-form-group input, .mt-form-group select, .mt-form-group textarea {
    width:100%; border:1px solid rgba(3,29,54,.12); border-radius:10px;
    padding:10px 14px; font-size:14px; background:var(--secondary-color); color:var(--primary-color); outline:none;
    transition:border-color .2s;
}
.mt-form-group input:focus, .mt-form-group select:focus, .mt-form-group textarea:focus { border-color:var(--accent-color,#0A49A6); }
.mt-form-group textarea { resize:vertical; line-height:1.6; }
.mt-btn { display:block; width:100%; margin-top:20px; text-align:center; }
.mt-btn::before { display:none !important; }
.mt-btn:disabled, .mt-btn[disabled] { opacity:.45; pointer-events:none; }
#mt-result { margin-top:14px; }
#mt-result .mt-result-msg { border-radius:10px; padding:12px 16px; font-size:14px; }
#mt-result .mt-result-msg.success { background:rgba(74,222,128,.12); color:#166534; border:1px solid rgba(74,222,128,.3); }
#mt-result .mt-result-msg.danger  { background:rgba(239,68,68,.1);  color:#991b1b; border:1px solid rgba(239,68,68,.25); }

/* ── Social Media Previewer specific ──────────────────── */
.sp-platform-tabs { display:flex; gap:6px; flex-wrap:wrap; margin-top:12px; margin-bottom:10px; }
.sp-tab { background:rgba(3,29,54,.05); border:1px solid rgba(3,29,54,.12); border-radius:20px; font-size:12px; font-weight:600; padding:5px 12px; cursor:pointer; color:#6b7a8d; transition:all .18s; }
.sp-tab.active { background:var(--tab-color,#000); color:#fff; border-color:transparent; }
.sp-live-count { font-size:12px; color:#6b7a8d; margin-top:6px; }
.sp-live-count.over { color:#dc2626; font-weight:600; }
.sp-char-bar { height:4px; background:rgba(3,29,54,.08); border-radius:2px; margin-top:8px; overflow:hidden; }
.sp-char-fill { height:100%; border-radius:2px; background:#22c55e; transition:width .2s,background .2s; }
.sp-preview-card { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:18px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; }
.sp-profile-row { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.sp-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; }
.sp-profile-name { font-size:14px; font-weight:700; color:#1a2535; line-height:1.3; }
.sp-profile-handle { font-size:12px; color:#8a94a6; }
.sp-post-body { font-size:14px; color:#1a2535; line-height:1.6; white-space:pre-wrap; word-break:break-word; margin-bottom:12px; min-height:40px; }
.sp-post-body .sp-placeholder { color:#b0bec5; font-style:italic; }
.sp-post-body .sp-hashtag { color:#0A66C2; }
.sp-post-body .sp-mention { color:#0A66C2; }
.sp-post-body .sp-link { color:#0A66C2; text-decoration:underline; }
.sp-post-body .sp-more { color:#8a94a6; cursor:pointer; font-size:13px; }
.sp-image-placeholder { border:1px dashed rgba(3,29,54,.15); border-radius:10px; height:120px; display:flex; align-items:center; justify-content:center; color:#b0bec5; font-size:13px; gap:8px; margin-bottom:12px; background:var(--secondary-color,#F8F8F8); }
.sp-footer-icons { font-size:12px; color:#8a94a6; padding-top:10px; border-top:1px solid rgba(3,29,54,.07); display:flex; gap:16px; flex-wrap:wrap; }
.sp-over-limit-warn { background:rgba(239,68,68,.08); border:1px solid rgba(239,68,68,.2); border-radius:10px; padding:10px 14px; font-size:13px; color:#dc2626; margin-top:10px; display:flex; align-items:center; gap:8px; }
