:root { --primary: #2563eb; --bg: #f8fafc; --card: #ffffff; --text: #334155; --border: #e2e8f0; }
.mt4-app { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; max-width: 1000px; margin: 0 auto; color: var(--text); }
.mt4-hidden { display: none; margin-top:5px; }

/* TABS */
.mt4-tabs { display: flex; gap: 10px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.mt4-tab { padding: 12px 20px; cursor: pointer; font-weight: 600; color: #64748b; border-bottom: 3px solid transparent; }
.mt4-tab.active { color: var(--primary); border-color: var(--primary); }
.mt4-panel { display: none; }
.mt4-panel.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* ACCORDION (New) */
.mt4-acc { margin-bottom: 10px; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; }
.mt4-acc-head { background: #f1f5f9; padding: 12px 15px; cursor: pointer; font-weight: bold; color: #334155; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.mt4-acc-head:hover { background: #e2e8f0; }
.mt4-acc-head .arrow { font-size: 0.8rem; transition: transform 0.2s; }
.mt4-acc-body { padding: 0 15px 15px 15px; }

/* MANUAL UPDATE BOX */
.mt4-manual-box { background:#f8fafc; border:1px solid #e2e8f0; padding:15px; border-radius:8px; }
.mt4-manual-grid { display: flex; gap: 15px; flex-wrap: wrap; }

/* FILTERS & TOOLBAR */
.mt4-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; background: #e2e8f0; border-radius: 8px; }
.mt4-toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; background: #f1f5f9; border-radius: 8px; border: 1px solid #cbd5e1; margin-bottom: 10px; }
.mt4-inp-sm { padding: 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9rem; }

/* FORMS & LIST */
.mt4-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.mt4-inp-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 5px; color: #475569; }
.mt4-inp { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; box-sizing: border-box; }
textarea.mt4-inp { font-family: monospace; }

.mt4-list { display: grid; gap: 8px; }
.mt4-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px; display: grid; grid-template-columns: 30px 1.5fr 1fr 1fr 1fr; align-items: center; gap: 10px; font-size: 0.95rem; }
.mt4-card-header { font-weight: bold; background: #f8fafc; border-bottom: 1px solid var(--border); display: none; }
.mt4-card.expired { border-left: 4px solid #ef4444; background: #fef2f2; }

@media (max-width: 768px) {
    .mt4-manual-grid { flex-direction: column; gap: 10px; }
    .mt4-card { grid-template-columns: 30px 1fr; gap: 5px; }
    .mt4-card > div:nth-child(n+3) { grid-column: 2; font-size: 0.85rem; color: #64748b; }
    .mt4-filter-bar, .mt4-toolbar { flex-direction: column; }
    .mt4-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) { .mt4-card-header { display: grid; } }

/* BUTTONS */
.mt4-btn { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; color: white; }
.btn-primary { background: var(--primary); }
.btn-preview { background: #f59e0b; }
.btn-sec { background: #64748b; }
.btn-danger { background: #ef4444; }
.badge { padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }
.bg-green { background: #dcfce7; color: #166534; }
.bg-red { background: #fee2e2; color: #991b1b; }
.assign-icon { color: #16a34a; font-weight: bold; display: inline-flex; align-items: center; gap: 4px; border: 1px solid #16a34a; padding: 2px 6px; border-radius: 10px; font-size: 0.8rem; background: #f0fdf4; }